IT/php

php stripcslashes - addcslashes () 로 인용 부호를 해제하십시오.

조원태 2017. 6. 7. 15:56
반응형

stripcslashes - addcslashes () 로 인용 부호를 해제하십시오.


설명 ¶


string stripcslashes ( string $str )

역 슬래시가 제거 된 문자열을 반환합니다. C와 같은 \ n , \ r ..., 8 진수 및 16 진수 표현을 인식합니다.


매개 변수 ¶


str

언 이스케이프 할 문자열입니다.


반환 값 ¶


이스케이프 처리되지 않은 문자열을 반환합니다.


참조 ¶


addcslashes () - 문자열을 C 스타일의 슬래시로 인용합니다.

메모 추가 메모 추가

사용자 기고서 3 노트


쪽으로

하위

삼 rafayhingoro [at] hotmail [dot] com ¶3 개월 전에

stripcslashes does not simply skip the C-style escape sequences \a, \b, \f, \n, \r, \t and \v, but converts them to their actual meaning. 


So

<?php

stripcslashes('\n') == "\n"; //true;


$str = "we are escaping \r\n"; //we are escaping


?>

반응형