Lines Matching refs:strtr
2 Test strtr() function : usage variations - unexpected inputs for all arguments
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
11 /* Test strtr() function: with unexpected inputs for 'str', 'from', 'to' & 'replace_pairs' argument…
13 echo "*** Testing strtr() function: with unexpected inputs for all arguments ***\n";
72 // loop through with each element of the $values array to test strtr() function
76 var_dump( strtr($values[$index], $values[$index], $values[$index]) ); //fn call with three args
77 var_dump( strtr($values[$index], $values[$index]) ); //fn call with two args
86 *** Testing strtr() function: with unexpected inputs for all arguments ***
91 Warning: strtr(): The second argument is not an array in %s on line %d
97 Warning: strtr(): The second argument is not an array in %s on line %d
103 Warning: strtr(): The second argument is not an array in %s on line %d
109 Warning: strtr(): The second argument is not an array in %s on line %d
115 Warning: strtr(): The second argument is not an array in %s on line %d
121 Warning: strtr(): The second argument is not an array in %s on line %d
126 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
129 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
134 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
137 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
142 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
145 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
150 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
153 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
158 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
161 Warning: strtr() expects parameter 1 to be string, array given in %s on line %d
167 Warning: strtr(): The second argument is not an array in %s on line %d
173 Warning: strtr(): The second argument is not an array in %s on line %d
179 Warning: strtr(): The second argument is not an array in %s on line %d
185 Warning: strtr(): The second argument is not an array in %s on line %d
191 Warning: strtr(): The second argument is not an array in %s on line %d
197 Warning: strtr(): The second argument is not an array in %s on line %d
203 Warning: strtr(): The second argument is not an array in %s on line %d
208 Warning: strtr() expects parameter 1 to be string, resource given in %s on line %d
211 Warning: strtr() expects parameter 1 to be string, resource given in %s on line %d
217 Warning: strtr(): The second argument is not an array in %s on line %d
223 Warning: strtr(): The second argument is not an array in %s on line %d