PHP 8.5.0 Alpha 4 available for testing

Voting

: max(four, eight)?
(Example: nine)

The Note You're Voting On

reinder at fake-address dot com
19 years ago
I always use this function in my code, because most of my functions return an Array or Boolean :

<?php

function printr ( $object , $name = '' ) {

print (
'\'' . $name . '\' : ' ) ;

if (
is_array ( $object ) ) {
print (
'<pre>' ) ;
print_r ( $object ) ;
print (
'</pre>' ) ;
} else {
var_dump ( $object ) ;
}

}

?>

( print_r gives no output on FALSE and that can be annoying! )

<< Back to user notes page

To Top