addslashes - Ư¼ö¹®ÀÚ º¯È¯(½½·¹½¬ºÙÀÓ) |
|
|
 |
14³â Àü |
addslashes ÇÔ¼ö
string addslashes(string str);
// »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ ¹®ÀÚ¿¿¡ µû¿ÈÇ¥°¡ Á¸ÀçÇÒ ¶§ À̸¦ µ¥ÀÌÅÍ º£À̽º·Î
// ³Ñ±â¸é Á¦´ë·Î Àü´ÞÀÌ µÇÁö ¾ÊÀ¸¹Ç·Î µû¿ÈÇ¥ ¾Õ¿¡ ¸¦ Ãß°¡Çؼ
// µû¿ÈÇ¥¸¦ Á¤»óÀûÀ¸·Î DB¿¡ Àü´ÞÇϱâ À§ÇØ »ç¿ëÇÏ´Â ÇÔ¼ö.
<?
$comment = "¾È³çÇϼ¼¿ä? 'ÇãÁØ'ÀÔ´Ï´Ù!";
echo("addslashes()ÇÔ¼ö È£ÃâÀü : $comment<p>");
$comment = addslashes($comment);
echo("addslashes()ÇÔ¼ö È£ÃâÈÄ : $comment<p>");
?>
|
|
̵̧ : 372 |
̵̧
¸ñ·Ï
|
|