Warning: file_put_contents(): Only -1 of 52 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
stripos stristr 문자열 PHP Manual stripslashes (PHP 4, 5) — addslashes() 로 처리한 문자열을 되돌립니다. 설명 string ( $str ) 백슬래쉬를 제거한 반환합니다. \' ...
Forum und email

stripslashes

(PHP 4, PHP 5)

stripslashes — addslashes()로 처리한 문자열을 되돌립니다.

설명

string stripslashes ( string $str )

백슬래쉬를 제거한 문자열을 반환합니다. (\''로 되는 방식입니다) 이중 백슬래쉬(\\)는 단일 백슬래쉬(\)로 만듭니다.

PHP 지시어 magic_quotes_gpcon(기본값으로 on입니다)일 때, 데이터를 이스케이프가 필요한 장소(데이터베이스 등)에 놓지 않을 경우의 사용 예제입니다. 예를 들면, HTML 폼에서 전달한 데이터를 단순히 바로 출력할 경우입니다.

Example#1 stripslashes() 예제

<?php
$str 
"Is your name O\'reilly?";

// 출력: Is your name O'reilly?
echo stripslashes($str);
?>

참고: addslashes(), get_magic_quotes_gpc().