Lines Matching refs:print_r

2 Test print_r() function
11 /* Prototype: bool print_r ( mixed $expression [, bool $return] );
16 Description: use print_r() to print variables */
22 print_r($variable);
23 //$return=TRUE, print_r() will return its output, instead of printing it
24 $ret_string = print_r($variable, true); //$ret_string captures the output
26 //$return=false, print_r() prints the output; default behavior
27 print_r($variable, false);
32 echo "\n*** Testing print_r() on integer variables ***\n";
51 using print_r() */
54 echo "\n*** Testing print_r() on float variables ***\n";
90 using print_r() */
93 echo "\n*** Testing print_r() on string variables ***\n";
110 /* calling check_printr() to display contents of strings using print_r() */
113 echo "\n*** Testing print_r() on boolean variables ***\n";
120 /* calling check_printr() to display boolean variables using print_r() */
126 echo "\n*** Testing print_r() on array variables ***\n";
147 echo "\n*** Testing print_r() on object variables ***\n";
222 /* calling check_printr() to display contents of the objects using print_r() */
225 echo "\n** Testing print_r() on objects having circular reference **\n";
230 print_r($recursion_obj2);
232 echo "\n*** Testing print_r() on resources ***\n";
244 using print_r() */
247 echo "\n*** Testing print_r() on different combinations of scalar
265 non-scalar variables using print_r() */
268 echo "\n*** Testing print_r() on miscelleneous input arguments ***\n";
275 /* calling check_printr() to display miscelleneous data using print_r() */
278 /* checking print_r() on functions */
279 echo "\n*** Testing print_r() on anonymous functions ***\n";
282 print_r( $newfunc(2, 3) );
284 print_r( create_function('$a', 'return "$a * $a = " . ($a * $b);') );
288 var_dump( print_r() );
291 var_dump( print_r(123, true, "abc") );
294 var_dump( print_r ($value, "string") );
302 *** Testing print_r() on integer variables ***
442 *** Testing print_r() on float variables ***
572 *** Testing print_r() on string variables ***
639 *** Testing print_r() on boolean variables ***
660 *** Testing print_r() on array variables ***
962 *** Testing print_r() on object variables ***
1462 ** Testing print_r() on objects having circular reference **
1487 *** Testing print_r() on resources ***
1497 *** Testing print_r() on different combinations of scalar
1707 *** Testing print_r() on miscelleneous input arguments ***
1725 *** Testing print_r() on anonymous functions ***
1735 Warning: print_r() expects at least 1 parameter, 0 given in %s on line %d
1738 Warning: print_r() expects at most 2 parameters, 3 given in %s on line %d