= 0) && (!$found);$i--) { $char = $haystack[$i]; if ($char == $needle) $found = 1; else $data .= $char; } return strrev($data); } ?>