Lines Matching refs:strtr
2 Test strtr() function : usage variations - string containing escape sequences for 'str' argument
5 /* Prototype : string strtr(string $str, string $from[, string $to]);
6 string strtr(string $str, array $replace_pairs);
11 /* Testing strtr() function by passing the
16 echo "*** Testing strtr() : string containing escape sequences for 'str' arg ***\n";
22 \\test\\\strtr
32 "\\test\\\strtr",
39 '\\test\\\strtr',
52 /* loop through to test strtr() with each element of $str_arr */
58 //strtr() call in three args syntax form
59 var_dump( strtr($str, $from, $to) );
61 //strtr() call in two args syntax form
62 var_dump( strtr($str, $replace_pairs) );
69 *** Testing strtr() : string containing escape sequences for 'str' arg ***
76 string(12) "\test\\strtr"
91 string(12) "\test\\strtr"