Saturday, 17 December 2011

addcslashes function

 addcslashes function 

The addcslashes() function returns a string with backslashes in front of the specified characters.


<?php
$str = "Hello, my name is Kai Jim.";
echo $str."<br />";
echo addcslashes($str,'m')."<br />";
echo addcslashes($str,'K')."<br />";
?>

No comments:

Post a Comment