Lines Matching refs:json_encode
2 Test json_encode() function : error conditions
11 /* Prototype : string json_encode ( mixed $value [, int $options=0 ] )
17 echo "*** Testing json_encode() : error conditions ***\n";
19 echo "\n-- Testing json_encode() function with no arguments --\n";
20 var_dump( json_encode() );
22 echo "\n-- Testing json_encode() function with more than expected no. of arguments --\n";
24 var_dump( json_encode("abc", 0, $extra_arg) );
29 *** Testing json_encode() : error conditions ***
31 -- Testing json_encode() function with no arguments --
33 Warning: json_encode() expects at least 1 parameter, 0 given in %s on line %d
36 -- Testing json_encode() function with more than expected no. of arguments --
38 Warning: json_encode() expects at most 2 parameters, 3 given in %s on line %d