public function add($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->add($_value);
            } // unset($_key, $_value);
            return $value;
        }
        $string = (string) $value;

        return addslashes($string);
    }
public function add($value)
    {
        if (is_array($value) || is_object($value)) {
            foreach ($value as $_key => &$_value) {
                $_value = $this->add($_value);
            } // unset($_key, $_value);
            return $value;
        }
        $string = (string) $value;

        return addslashes($string);
    }
public function add ( $ value ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { foreach ( $ value as $ _key => & $ _value ) { $ _value = $ this -> add ( $ _value ) ; } // unset($_key, $_value); return $ value ; } $ string = ( string ) $ value ; return addslashes ( $ string ) ; }
Add slashes deeply.

@since 150424 Initial release.

@param mixed $value Any input value.

@return string|array|object Slashed value.
Add slashes deeply .