Lines Matching refs:print_r
2 Test print_r() function
7 /* Prototype: bool print_r ( mixed $expression [, bool $return] );
12 Description: use print_r() to print variables */
18 print_r($variable);
19 //$return=TRUE, print_r() will return its output, instead of printing it
20 $ret_string = print_r($variable, true); //$ret_string captures the output
22 //$return=false, print_r() prints the output; default behavior
23 print_r($variable, false);
28 echo "\n*** Testing print_r() on integer variables ***\n";
47 using print_r() */
50 echo "\n*** Testing print_r() on float variables ***\n";
86 using print_r() */
89 echo "\n*** Testing print_r() on string variables ***\n";
106 /* calling check_printr() to display contents of strings using print_r() */
109 echo "\n*** Testing print_r() on boolean variables ***\n";
116 /* calling check_printr() to display boolean variables using print_r() */
122 echo "\n*** Testing print_r() on array variables ***\n";
143 echo "\n*** Testing print_r() on object variables ***\n";
218 /* calling check_printr() to display contents of the objects using print_r() */
221 echo "\n** Testing print_r() on objects having circular reference **\n";
226 print_r($recursion_obj2);
228 echo "\n*** Testing print_r() on resources ***\n";
240 using print_r() */
243 echo "\n*** Testing print_r() on different combinations of scalar
261 non-scalar variables using print_r() */
264 echo "\n*** Testing print_r() on miscelleneous input arguments ***\n";
271 /* calling check_printr() to display miscelleneous data using print_r() */
274 /* checking print_r() on functions */
275 echo "\n*** Testing print_r() on anonymous functions ***\n";
278 print_r( $newfunc(2, 3) );
280 print_r( create_function('$a', 'return "$a * $a = " . ($a * $b);') );
284 var_dump( print_r() );
287 var_dump( print_r(123, true, "abc") );
290 var_dump( print_r ($value, "string") );
298 *** Testing print_r() on integer variables ***
438 *** Testing print_r() on float variables ***
568 *** Testing print_r() on string variables ***
635 *** Testing print_r() on boolean variables ***
656 *** Testing print_r() on array variables ***
958 *** Testing print_r() on object variables ***
1458 ** Testing print_r() on objects having circular reference **
1483 *** Testing print_r() on resources ***
1493 *** Testing print_r() on different combinations of scalar
1703 *** Testing print_r() on miscelleneous input arguments ***
1721 *** Testing print_r() on anonymous functions ***
1731 Warning: print_r() expects at least 1 parameter, 0 given in %s on line %d
1734 Warning: print_r() expects at most 2 parameters, 3 given in %s on line %d