Lines Matching refs:strtok
2 Test strtok() function : usage variations - with different token strings
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with different token strings
14 echo "*** Testing strtok() : with different token strings ***\n";
16 $str = 'this testcase test strtok() function ';
83 // loop through each element of the array and check the working of strtok()
86 echo "\n--- Testing strtok() by supplying different values for 'token' argument ---\n";
92 var_dump( strtok($str, $token) );
103 *** Testing strtok() : with different token strings ***
109 --- Testing strtok() by supplying different values for 'token' argument ---
111 string(37) "this testcase test strtok() function "
113 string(37) "this testcase test strtok() function "
115 string(37) "this testcase test strtok() function "
117 string(37) "this testcase test strtok() function "
119 string(37) "this testcase test strtok() function "
121 string(37) "this testcase test strtok() function "
123 string(37) "this testcase test strtok() function "
125 string(37) "this testcase test strtok() function "
127 string(37) "this testcase test strtok() function "
130 Warning: strtok() expects parameter 2 to be string, array given in %s on line %d
134 Warning: strtok() expects parameter 2 to be string, array given in %s on line %d
138 Warning: strtok() expects parameter 2 to be string, array given in %s on line %d
142 Warning: strtok() expects parameter 2 to be string, array given in %s on line %d
146 Warning: strtok() expects parameter 2 to be string, array given in %s on line %d
149 string(37) "this testcase test strtok() function "
151 string(37) "this testcase test strtok() function "
153 string(37) "this testcase test strtok() function "
155 string(37) "this testcase test strtok() function "
159 string(37) "this testcase test strtok() function "
161 string(37) "this testcase test strtok() function "
163 string(37) "this testcase test strtok() function "
165 string(37) "this testcase test strtok() function "
167 string(37) "this testcase test strtok() function "
169 string(37) "this testcase test strtok() function "
172 Warning: strtok() expects parameter 2 to be string, resource given in %s on line %d