function strReplace()
    {
        if (($this->getParameter('needle') == null) || ($this->getParameter('haystack') == null))
            return $this->getParameter('haystack');

        $needle = $this->getParameter('needle');
        if($needle == '\n')
            $needle = "\n";

        return str_replace($needle, $this->getParameter('replace'), $this->getParameter('haystack'));
    }
function strReplace()
    {
        if (($this->getParameter('needle') == null) || ($this->getParameter('haystack') == null))
            return $this->getParameter('haystack');

        $needle = $this->getParameter('needle');
        if($needle == '\n')
            $needle = "\n";

        return str_replace($needle, $this->getParameter('replace'), $this->getParameter('haystack'));
    }
function strReplace ( ) { if ( ( $ this -> getParameter ( 'needle' ) == null ) || ( $ this -> getParameter ( 'haystack' ) == null ) ) return $ this -> getParameter ( 'haystack' ) ; $ needle = $ this -> getParameter ( 'needle' ) ; if ( $ needle == '\n' ) $ needle = "\n" ; return str_replace ( $ needle , $ this -> getParameter ( 'replace' ) , $ this -> getParameter ( 'haystack' ) ) ; }
Performs a string replace on the specified param

Expected Params:
needle   string The item to search for
haystack string The string to look in
replace  string The string to replace the found text with

@return string
Performs a string replace on the specified param