Home
last modified time | relevance | path

Searched refs:str (Results 251 – 275 of 763) sorted by last modified time

1...<<11121314151617181920>>...31

/PHP-5.5/ext/standard/tests/strings/
H A Dstrcspn_variation11.phpt5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
66 // loop through each element of the arrays for str,mask and start arguments
68 foreach($strings as $str) {
72 var_dump( strcspn($str,$mask,$start) );
H A Dstrcspn_variation12.phpt5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
65 // loop through each element of the arrays for str,mask,start and len arguments
68 foreach($strings as $str) {
73 var_dump( strcspn($str,$mask,$start,$len) );
H A Dstrcspn_variation2.phpt5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
20 $str = 'string_val';
94 var_dump( strcspn($str,$value) ); // with defalut args
95 var_dump( strcspn($str,$value,$start) ); // with default len value
96 var_dump( strcspn($str,$value,$start,$len) ); // with all args
H A Dstrcspn_variation3.phpt5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
21 $str = 'string_val';
92 var_dump( strcspn($str,$mask,$value) ); // with default len value
93 var_dump( strcspn($str,$mask,$value,$len) ); // with all args
H A Dstrcspn_variation4.phpt5 /* Prototype : proto int strcspn(string str, string mask [, int start [, int len]])
21 $str = 'string_val';
92 var_dump( strcspn($str,$mask,$start,$value) ); // with all args
H A Dstrcspn_variation6.phpt5 /* Prototype : proto int strcspn(string str, string mask [,int start [,int len]])
81 foreach($heredoc_strings as $str) {
84 var_dump( strcspn($str,$mask) ); // with default start and len value
H A Dsscanf_basic1.phpt5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
16 $str = "Part: Widget Serial Number: 1234789 Stock: 25";
21 list($part, $number, $stock) = sscanf($str, $format);
26 $res = sscanf($str, $format, $part, $number, $stock);
H A Dsscanf_basic2.phpt5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
16 $str = "Part: Widget Serial Number: 1234789 Stock: 25";
21 list($part, $number, $stock) = sscanf($str, $format);
26 $res = sscanf($str, $format, $part, $number, $stock);
H A Dsscanf_basic4.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 $str = "X = A + B - C";
18 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format);
23 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4);
H A Dsscanf_basic5.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 $str = "10.12345 10.12345E3 10.12345e3 -10.12345e4" ;
19 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format1);
21 list($arg1, $arg2, $arg3, $arg4) = sscanf($str, $format2);
26 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4);
28 $res = sscanf($str, $format2,$arg1, $arg2, $arg3, $arg4);
H A Dsscanf_basic6.phpt12 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
19 $str = "-11 +11 11 -11.234 +11.234 11.234";
24 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
29 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
H A Dsscanf_basic7.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 $str = "0123 -0123 +0123 0129 -0129 +0129";
18 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format);
23 $res = sscanf($str, $format, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
H A Dsscanf_basic8.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 $str = "129 12F 123B -123B 01ABC 1G";
19 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format1);
21 list($arg1, $arg2, $arg3, $arg4, $arg5, $arg6) = sscanf($str, $format2);
26 $res = sscanf($str, $format1, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
28 $res = sscanf($str, $format2, $arg1, $arg2, $arg3, $arg4, $arg5, $arg6);
H A Dsscanf_error.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
12 $str = "Hello World";
19 var_dump( sscanf($str) );
23 var_dump( sscanf($str, $format, $str1, $str2, $extra_str) );
H A Dsscanf_basic3.phpt6 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
13 $str = "Part: Widget Length: 111.53 Width: 22.345 Depth: 12.4";
18 list($part, $length, $width, $depth) = sscanf($str, $format);
23 $res = sscanf($str, $format, $part, $length, $width, $depth);
H A Dsscanf_variation1.phpt2 Test sscanf() function : usage variations - unexpected inputs for '$str' argument
5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
10 echo "*** Testing sscanf() function: with unexpected inputs for 'str' argument ***\n";
85 *** Testing sscanf() function: with unexpected inputs for 'str' argument ***
H A Dsscanf_variation2.phpt5 /* Prototype : mixed sscanf ( string $str , string $format [, mixed &$... ] )
70 $str = "Hello World";
76 var_dump( sscanf($str, $input) );
H A Dquoted_printable_decode_basic.phpt5 /* Prototype : string quoted_printable_decode ( string $str )
12 $str = "=FAwow-factor=C1=d0=D5=DD=C5=CE=CE=D9=C5=0A=
18 var_dump(bin2hex(quoted_printable_decode($str)));
H A Drtrim_basic.phpt6 /* Prototype : string rtrim ( string $str [, string $charlist ] )
H A Drtrim_error.phpt6 /* Prototype : string rtrim ( string $str [, string $charlist ] )
H A Drtrim_variation1.phpt2 Test rtrim() function : usage variations - test values for $str argument
6 /* Prototype : string rtrim ( string $str [, string $charlist ] )
11 echo "*** Testing rtrim() function: with unexpected inputs for 'str' argument ***\n";
85 *** Testing rtrim() function: with unexpected inputs for 'str' argument ***
H A Drtrim_variation2.phpt6 /* Prototype : string rtrim ( string $str [, string $charlist ] )
H A Dsoundex.phpt28 foreach ($array as $str) {
29 var_dump(soundex($str));
H A Dsoundex_basic.phpt5 /* Prototype : string soundex ( string $str )
H A Dsoundex_error.phpt5 /* Prototype : string soundex ( string $str )
16 $str = "Euler";
18 var_dump( soundex( $str, $extra_arg) );

Completed in 46 milliseconds

1...<<11121314151617181920>>...31