string addslashes ( string $str )
Quote string with slashes
Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).
<?php
$str = "Is your name O'reilly?";
// Outputs: Is your name O\'reilly?
echo addslashes($str);
?>
14.-Curso PHP-MySQL. Formatear, cortar y unir strings.
0 Comment:
Post a Comment