View Single Post
  #22 (permalink)  
Old 10-16-2007, 03:41 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 addcslashes to add specific escape sequence in string there is another function which do vice versa and remove those in any string. That function is called stripcslashes.

It returns a string with backslashes stripped off. Recognizes C-like \n, \r ..., octal and hexadecimal representation.

<?php
echo stripcslashes("Hello, \my na\me is Kai Ji\m.");
?>


The output of the code above will be:
Hello, my name is Kai Jim.


Thanks
__________________
K K Venkata Charya
Success is easy to get but difficult to retain
Reply With Quote