Voting

: min(three, three)?
(Example: nine)

The Note You're Voting On

steve at stevelockwood dot net
10 years ago
If, instead of an array, you pass an object PHP will automatically cast the object as an array so you can use it directly in vprintf.
<?php
$object
= new stdClass();
$object->Property1 = 'Value 1';
$object->Property2 = 'Value 2';
vprintf('%-20s %-20s', $object);

/* will output
Value 1 Value 2
*/
?>

<< Back to user notes page

To Top