public function replace($sTarget, $sAttribute, $sSearch, $sData)
    {
        return $this->addCommand(
            array(
                'cmd' => 'rp',
                'id' => trim((string)$sTarget, " \t"),
                'prop' => trim((string)$sAttribute, " \t")
            ),
            array(
                's' => trim((string)$sSearch, " \t\n"),
                'r' => trim((string)$sData, " \t\n")
            )
        );
    }
public function replace($sTarget, $sAttribute, $sSearch, $sData)
    {
        return $this->addCommand(
            array(
                'cmd' => 'rp',
                'id' => trim((string)$sTarget, " \t"),
                'prop' => trim((string)$sAttribute, " \t")
            ),
            array(
                's' => trim((string)$sSearch, " \t\n"),
                'r' => trim((string)$sData, " \t\n")
            )
        );
    }
public function replace ( $ sTarget , $ sAttribute , $ sSearch , $ sData ) { return $ this -> addCommand ( array ( 'cmd' => 'rp' , 'id' => trim ( ( string ) $ sTarget , " \t" ) , 'prop' => trim ( ( string ) $ sAttribute , " \t" ) ) , array ( 's' => trim ( ( string ) $ sSearch , " \t\n" ) , 'r' => trim ( ( string ) $ sData , " \t\n" ) ) ) ; }
Add a command to replace a specified value with another value within the given element's attribute

@param string        $sTarget            The id of the element to update
@param string        $sAttribute            The attribute to be updated
@param string        $sSearch            The needle to search for
@param string        $sData                The data to use in place of the needle

@return \Jaxon\Plugin\Response
Add a command to replace a specified value with another value within the given element s attribute