Home
last modified time | relevance | path

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

/PHP-7.0/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-7.0/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-7.0/win32/
H A Dsendmail.c443 token = strtok(tempMailTo, ","); in SendText()
457 token = strtok(NULL, ","); in SendText()
464 token = strtok(tempMailTo, ","); in SendText()
478 token = strtok(NULL, ","); in SendText()
494 token = strtok(tempMailTo, ","); in SendText()
508 token = strtok(NULL, ","); in SendText()
519 token = strtok(tempMailTo, ","); in SendText()
533 token = strtok(NULL, ","); in SendText()
552 token = strtok(tempMailTo, ","); in SendText()
566 token = strtok(NULL, ","); in SendText()
/PHP-7.0/TSRM/
H A Dtsrm_nw.c47 #define tsrm_strtok_r(a,b,c) strtok((a),(b))
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_print.c409 char *method_name, *class_name = strtok(function, "::"); in phpdbg_print_opcodes()
410 if ((method_name = strtok(NULL, "::")) == NULL) { in phpdbg_print_opcodes()
H A Dphpdbg_prompt.c306 char *str = strtok(buffer, "\n"); in phpdbg_string_init()
311 str = strtok(NULL, "\n"); in phpdbg_string_init()
/PHP-7.0/ext/standard/
H A Dphp_string.h41 PHP_FUNCTION(strtok);
H A Dstring.c1311 PHP_FUNCTION(strtok) in PHP_FUNCTION() argument
H A Dbasic_functions.c2731 PHP_FE(strtok, arginfo_strtok)
/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_conf.c1039 while (strtok(limit_extensions, " \t")) { in fpm_conf_process_all_pools()
1061 while ((ext = strtok(limit_extensions, " \t"))) { in fpm_conf_process_all_pools()
/PHP-7.0/ext/phar/
H A Dphar_object.c2143 spprintf(&newname, 0, "%s.%s", strtok(basename, "."), ext); in phar_rename_archive()

Completed in 103 milliseconds