View Single Post
  #21 (permalink)  
Old 10-16-2007, 03:33 AM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up 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
Reply With Quote
Sponsored Links