Lines Matching refs:str
2 Test strtr() function : usage variations - empty string & null 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
12 * empty string & null for 'str' argument and
16 echo "*** Testing strtr() : empty string & null for 'str' arg ***\n";
24 //array of string inputs for $str
44 $str = $str_arr[$index]; //getting the array element in 'str' variable
47 var_dump( strtr($str, $from, $to) );
50 var_dump( strtr($str, $replace_pairs) );
57 *** Testing strtr() : empty string & null for 'str' arg ***