php
PHP - quotemeta 함수
string quotemeta ( string $str )
(PHP 4, PHP 5)
{. \ + * ? [ ^ ] ( $ )} 인 모든 문자 앞에 백슬래시 문자(\)를 덧붙인 $str 을 반환합니다.
(PHP 4, PHP 5)
{. \ + * ? [ ^ ] ( $ )} 인 모든 문자 앞에 백슬래시 문자(\)를 덧붙인 $str 을 반환합니다.
<?php
$str = "Hello world. (can you hear me?)";
echo quotemeta($str);
// 출력: Hello world\. \(can you hear me\?\)
?>
0 댓글