1--TEST--
2Test stripcslashes() function : basic functionality
3--FILE--
4<?php
5
6/* Prototype  : string stripcslashes  ( string $str  )
7 * Description: Returns a string with backslashes stripped off. Recognizes C-like \n, \r ...,
8 *              octal and hexadecimal representation.
9 * Source code: ext/standard/string.c
10*/
11
12echo "*** Testing stripcslashes() : basic functionality ***\n";
13var_dump(stripcslashes('\H\e\l\l\o \W\or\l\d'));
14var_dump(stripcslashes('Hello World\\r\\n'));
15var_dump(stripcslashes('\x48\x65\x6c\x6c\x6f \x57\x6f\x72\x6c\x64'));
16var_dump(stripcslashes('\110\145\154\154\157 \127\157\162\154\144'));
17
18?>
19===DONE===
20--EXPECT--
21*** Testing stripcslashes() : basic functionality ***
22string(11) "Hello World"
23string(13) "Hello World
24"
25string(11) "Hello World"
26string(11) "Hello World"
27===DONE===
28
29