Home
last modified time | relevance | path

Searched refs:strtok (Results 1 – 17 of 17) sorted by relevance

/PHP-5.5/ext/standard/tests/strings/
H A Dstrtok_variation2.phpt5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with different token strings
16 $str = 'this testcase test strtok() function ';
92 var_dump( strtok($str, $token) );
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 "
[all …]
H A Dstrtok_error.phpt2 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() );
26 var_dump( strtok($str, $token, $extra_arg) );
33 var_dump( strtok($str));
39 *** Testing strtok() : error conditions ***
41 -- Testing strtok() function with Zero arguments --
[all …]
H A Dstrtok_basic.phpt2 Test strtok() function : basic functionality
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : basic functionality
14 echo "*** Testing strtok() : basic functionality ***\n";
17 $str = 'This testcase test strtok() function.';
23 // using strtok() with $str argument
25 var_dump( strtok($str, $token) );
29 var_dump( strtok($token) );
35 *** Testing strtok() : basic functionality ***
38 "This testcase test strtok() function."
[all …]
H A Dstrtok_variation1.phpt2 Test strtok() function : usage variations - first argument as non-string
5 /* Prototype : string strtok ( string $str, string $token )
11 * Testing strtok() : with first argument as non-string
14 echo "*** Testing strtok() : with first argument as non-string ***\n";
83 // loop through each element of the array and check the working of strtok()
92 var_dump( strtok($str, $token) );
103 *** Testing strtok() : with first argument as non-string ***
109 --- Testing strtok() by supplying different values for 'str' argument ---
130 Warning: strtok() expects parameter 1 to be string, array given in %s on line %d
134 Warning: strtok() expects parameter 1 to be string, array given in %s on line %d
[all …]
H A Dstrtok_variation7.phpt2 Test strtok() function : usage variations - modifying the input string while tokenising
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : modifying the input string while it is getting tokenised
14 echo "*** Testing strtok() : with modification of input string in between tokenising ***\n";
20 var_dump( strtok($str, $token) );
25 var_dump( strtok($token) );
30 var_dump( strtok($str, $token) );
35 var_dump( strtok($token) );
41 *** Testing strtok() : with modification of input string in between tokenising ***
43 *** Testing strtok() when string being tokenised is prefixed with another string in between the pro…
[all …]
H A Dstrtok_variation4.phpt2 Test strtok() function : usage variations - with embedded nulls in the strings
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with embedded nulls in the strings
14 echo "*** Testing strtok() : with embedded nulls in the strings ***\n";
28 // loop through each element of the array and check the working of strtok()
34 var_dump( strtok($string, "\0") );
36 var_dump( strtok("\0") );
45 *** Testing strtok() : with embedded nulls in the strings ***
H A Dstrtok_variation3.phpt2 Test strtok() function : usage variations - with heredoc strings
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with heredoc strings
14 echo "*** Testing strtok() : with heredoc strings ***\n";
54 // loop through each element of the array and check the working of strtok()
60 var_dump( strtok($string, "5o\0\n\t") );
62 var_dump( strtok("5o\0\n\t") );
71 *** Testing strtok() : with heredoc strings ***
H A Dstrtok_variation5.phpt2 Test strtok() function : usage variations - miscellaneous inputs
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with miscellaneous combinations of string and token
14 echo "*** Testing strtok() : with miscellaneous inputs ***\n";
44 // loop through each element of the array and check the working of strtok()
50 var_dump( strtok($string, $token_array[$counter-1]) );
52 var_dump( strtok($token_array[$counter-1]) );
61 *** Testing strtok() : with miscellaneous inputs ***
H A Dstrtok_variation6.phpt2 Test strtok() function : usage variations - invalid escape sequences as tokens
5 /* Prototype : string strtok ( str $str, str $token )
11 * Testing strtok() : with invalid escape sequences in token
14 echo "*** Testing strtok() : with invalid escape sequences in token ***\n";
31 // loop through each element of the array and check the working of strtok()
38 var_dump( strtok($string, $token) );
40 var_dump( strtok($token) );
51 *** Testing strtok() : with invalid escape sequences in token ***
/PHP-5.5/tests/strings/
H A D001.phpt8 echo "Testing strtok: ";
11 $tok1 = strtok($str, " ");
12 $tok2 = strtok("/");
13 $tok3 = strtok("\\");
14 $tok4 = strtok(".");
209 Testing strtok: passed
/PHP-5.5/win32/
H A Dsendmail.c437 token = strtok(tempMailTo, ","); in SendText()
451 token = strtok(NULL, ","); in SendText()
458 token = strtok(tempMailTo, ","); in SendText()
472 token = strtok(NULL, ","); in SendText()
488 token = strtok(tempMailTo, ","); in SendText()
502 token = strtok(NULL, ","); in SendText()
513 token = strtok(tempMailTo, ","); in SendText()
527 token = strtok(NULL, ","); in SendText()
546 token = strtok(tempMailTo, ","); in SendText()
560 token = strtok(NULL, ","); in SendText()
/PHP-5.5/TSRM/
H A Dtsrm_nw.c47 #define tsrm_strtok_r(a,b,c) strtok((a),(b))
/PHP-5.5/ext/standard/
H A Dphp_string.h41 PHP_FUNCTION(strtok);
H A Dstring.c1276 PHP_FUNCTION(strtok) in PHP_FUNCTION() argument
H A Dbasic_functions.c2749 PHP_FE(strtok, arginfo_strtok)
/PHP-5.5/sapi/fpm/fpm/
H A Dfpm_conf.c1025 while (strtok(limit_extensions, " \t")) { in fpm_conf_process_all_pools()
1047 while ((ext = strtok(limit_extensions, " \t"))) { in fpm_conf_process_all_pools()
/PHP-5.5/ext/phar/
H A Dphar_object.c2102 spprintf(&newname, 0, "%s.%s", strtok(basename, "."), ext); in phar_rename_archive()

Completed in 138 milliseconds