stripcslashes - addcslashes () 로 인용 부호를 해제하십시오. > 개발자팁

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

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

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

본문

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

 

?>

추천
1
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로