µ¥ÀÌÅͺ£À̽º ÁúÀÇ µî¿¡¼ ó¸®ÇÒ ÇÊ¿ä°¡ ÀÖ´Â ¹®ÀÚ ¾Õ¿¡ ¹é½½·¡½Ã¸¦ ºÙÀÎ ¹®ÀÚ¿À» ¹ÝȯÇÕ´Ï´Ù. ÀÌ ¹®ÀÚµéÀº Ȭµû¿ÈÇ¥('), °ãµû¿ÈÇ¥("), ¹é½½·¡½Ã(\), NUL(NULL ¹ÙÀÌÆ®)ÀÔ´Ï´Ù.
<?php
$str = "Is your name O'reilly?";
// Ãâ·Â: Is your name O\'reilly?
echo addslashes($str);
?>
http://docs.php.net/manual/kr/function.addslashes.php |
|