Lines Matching refs:strtok
2 Test strtok() function : error conditions
5 /* Prototype : string strtok ( string $str, string $token )
11 * Testing strtok() for error conditions
14 echo "*** Testing strtok() : error conditions ***\n";
17 echo "\n-- Testing strtok() function with Zero arguments --\n";
18 var_dump( strtok() );
21 echo "\n-- Testing strtok() function with more than expected no. of arguments --\n";
26 var_dump( strtok($str, $token, $extra_arg) );
30 echo "\n-- Testing strtok() with less than expected no. of arguments --\n";
33 var_dump( strtok($str));
39 *** Testing strtok() : error conditions ***
41 -- Testing strtok() function with Zero arguments --
43 Warning: strtok() expects at least 1 parameter, 0 given in %s on line %d
46 -- Testing strtok() function with more than expected no. of arguments --
48 Warning: strtok() expects at most 2 parameters, 3 given in %s on line %d
52 -- Testing strtok() with less than expected no. of arguments --