quotemeta - 메타 문자 인용 정보
PHP quotemeta - 메타 문자 인용본문
quotemeta - 메타 문자 인용
설명 ¶
string quotemeta ( string $str )
다음 중 모든 문자 앞에 백 슬래시 문자 ( \ ) 가있는 str 버전을 반환합니다 .
. \ + *? [^] ($)
매개 변수 ¶
str
입력 문자열.
반환 값 ¶
메타 문자가 인용 된 문자열을 반환하거나 FALSE빈 문자열이로 주어 지면 반환합니다 str.
<?php
$str = "Hello world. (can you hear me?)";
echo quotemeta($str);
?>
The output of the code above will be:
Hello world\. \(can you hear me\?\)
추천
0
0
댓글 0개