Home
last modified time | relevance | path

Searched refs:str (Results 176 – 200 of 763) sorted by last modified time

12345678910>>...31

/PHP-5.5/ext/standard/tests/strings/
H A Dstrtok_variation5.phpt5 /* Prototype : string strtok ( str $str, str $token )
6 …* Description: splits a string (str) into smaller strings (tokens), with each token being delimite…
H A Dstrtolower.phpt18 string strtolower ( string $str );
35 $str = "Mary Had A liTTle LAmb and ShE loveD IT So\n";
36 var_dump(strtolower($str));
H A Dstrtoupper1-win32.phpt23 $str = "Mary Had A liTTle LAmb and ShE loveD IT So\n";
24 var_dump(strtoupper($str));
H A Dstrtoupper1.phpt35 $str = "Mary Had A liTTle LAmb and ShE loveD IT So\n";
36 var_dump(strtoupper($str));
H A Dstrtr_variation5.phpt2 Test strtr() function : usage variations - unexpected inputs for 'str' argument
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
11 /* Test strtr() function: with unexpected inputs for 'str'
15 echo "*** Testing strtr() function: with unexpected inputs for 'str' ***\n";
82 $str = $strings[$index];
83 var_dump( strtr($str, $from, $to) );
92 *** Testing strtr() function: with unexpected inputs for 'str' ***
H A Dstrtr_variation6.phpt5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * and expected type for 'str' & 'to' arguments
31 //defining 'str' argument
32 $str = "012atm";
83 var_dump( strtr($str, $from, $to) );
H A Dstrtr_variation7.phpt5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * and expected types for 'str' & 'from' arguments
31 //defining 'str' argument
32 $str = "012atm";
83 var_dump( strtr($str, $from, $to) );
H A Dstrtr_variation8.phpt5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
12 * and expected type for 'str' arguments
31 //defining 'str' argument
32 $str = "012atm";
80 var_dump( strtr($str, $replace_pairs) );
H A Dstrtr_variation9.phpt5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
7 * Description: Translates characters in str using given translation tables
11 /* Test strtr() function: with unexpected inputs for 'str', 'from', 'to' & 'replace_pairs' argument…
H A Dstrrev.phpt6 $str = '';
9 $str .= chr($i++);
12 var_dump(md5(strrev($str)));
H A Dstrrev_basic.phpt5 /* Prototype : string strrev(string $str);
H A Dstrrev_error.phpt5 /* Prototype : string strrev(string $str);
H A Dstrrev_variation1.phpt5 /* Prototype : string strrev(string $str);
10 /* Testing strrev() function with various double quoted strings for 'str' */
13 $str = "Hiiii";
39 "Hello".$str,
H A Dstrrev_variation2.phpt5 /* Prototype : string strrev(string $str);
10 /* Testing strrev() function with various single quoted strings for 'str' */
13 $str = 'Hiiii';
39 'Hello'.$str,
H A Dstrrev_variation3.phpt5 /* Prototype : string strrev(string $str);
10 /* Testing strrev() function with heredoc strings for 'str' */
H A Dstrrev_variation4.phpt5 /* Prototype : string strrev(string $str);
10 /* Testing strrev() function with unexpected inputs for 'str' */
12 echo "*** Testing strrev() : unexpected inputs for 'str' ***\n";
77 // loop through each element of the array for str
91 *** Testing strrev() : unexpected inputs for 'str' ***
H A Dstrripos.phpt7 var_dump(strripos("test strip string strand", "str"));
H A Dstrrpos.phpt7 var_dump(strrpos("test strip string strand", "str"));
H A Dstrncasecmp_basic.phpt23 $str = <<<HEREDOC
26 var_dump( strncasecmp($str, "Hello", 5) ); //expected: int(0)
27 var_dump( strncasecmp($str, "Hi", 5) ); //expected: value < 0
28 var_dump( strncasecmp("Hi", $str, 5) ); //expected: value > 0
H A Dstrncmp_basic.phpt23 $str = <<<HEREDOC
26 var_dump( strncmp($str, "Hello", 5) ); //expected: int(0)
27 var_dump( strncmp($str, "Hi", 5) ); //expected: value < 0
28 var_dump( strncmp("Hi", $str, 5) ); //expected: value > 0
H A Dstrpos.phpt157 $str = <<<EOD
159 var_dump( strpos($str, "\0") );
160 var_dump( strpos($str, NULL) );
161 var_dump( strpos($str, "0") );
178 $str = chr(0).chr(128).chr(129).chr(234).chr(235).chr(254).chr(255);
179 echo "-- Positions of some chars in the string '$str' are as follows --\n";
181 var_dump( strpos($str, chr(128)) );
183 var_dump( strpos($str, chr(255), 3) );
185 var_dump( strpos($str, chr(256)) );
H A Dstrip_tags_variation10.phpt7 /* Prototype : string strip_tags(string $str [, string $allowable_tags])
13 * testing functionality of strip_tags() by giving single quoted strings as values for $str argument
H A Dstrip_tags_variation2.phpt7 /* Prototype : string strip_tags(string $str [, string $allowable_tags])
H A Dstrip_tags_variation3.phpt2 Test strip_tags() function : usage variations - unexpected values for both 'str' and 'allowable_tag…
7 /* Prototype : string strip_tags(string $str [, string $allowable_tags])
13 …* testing functionality of strip_tags() by giving unexpected values for $str and $allowable_tags a…
H A Dstrip_tags_variation7.phpt2 Test strip_tags() function : usage variations - invalid values for 'str' and 'allowable_tags'
7 /* Prototype : string strip_tags(string $str [, string $allowable_tags])
13 …* testing functionality of strip_tags() by giving invalid values for $str and $allowable_tags argu…

Completed in 53 milliseconds

12345678910>>...31