Lines Matching refs:str
74 * @param string $str The string in which to look for entities
77 function replaceEntities($str) argument
80 $str = preg_replace(sprintf("/&%s;/", $old), $new, $str);
85 $str = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $str);
86 $str = preg_replace('~&#([0-9]+);~e', 'chr(\\1)', $str);
88 return $str;
96 * @param string $str The original string
100 function removeQuotes($str) argument
106 if (preg_match($double, $str, $matches)) {
108 } else if (preg_match($single, $str, $matches)) {
111 return $str;