Re: string functions and manipulations in php hi
As like we using addslashes to add slashes in string, we can use another string function to remove slashes in string. That function is called stripslashes
Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes (\\) are made into a single backslash (\).
<?php
$str = "Is your name O\'reilly?";
// Outputs: Is your name O'reilly?
echo stripslashes($str);
?>
Thanks
__________________ K K Venkata Charya Success is easy to get but difficult to retain |