분류 php

string addslashes (string str)는 더 많은 슬래시를 추가합니다.

컨텐츠 정보

  • 조회 910 (작성일 )

본문

코드 : 

$string = "'test";
    $a = addslashes($string);
    $b = addslashes($a);
    $c = addslashes($b);

echo $a;
echo $b;
echo $c;


결과 : 

\'test
\\\'test
\\\\\\\'test 



php