note 83269 added to function.stripcslashes
| From: | uramihsayibok at osu1 dot php dot net | Date: | Sun, 18 May 2008 04:09:25 +0000 |
| Subject: | note 83269 added to function.stripcslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139497@lists.php.net to get a copy of this message | ||
> /*QUOTE
> stripcslashes('He\xallo') == 'He'."\n".'llo'
> stripcslashes('H\xaello') == 'H'.chr(0xAE).'llo'
> */
>
> You Can Use
>
> stripcslashes('H\xa0ello') == 'H'.chr(0xA0).'ello'
Correct. But not what (I think) you were trying to show.
>
> as xa0 = xa = chr(xA)
Not so correct.
Does 9==90? No, because that added zero *after* the number means something.
It's when you add a zero *before* the number does it not affect the value.
I'd like to assume that was a typo, but with the Internet as it is, who knows...
> You Can Use
>
> stripcslashes('H\x0aello') == 'H'.chr(0x0A).'ello'
fix'd
----
Server IP: 64.71.164.2
Probable Submitter: 75.172.116.63
----
Manual Page -- http://www.php.net/manual/en/function.stripcslashes.php
Edit -- https://master.php.net/note/edit/83269
Del: integrated -- https://master.php.net/note/delete/83269/integrated
Del: useless -- https://master.php.net/note/delete/83269/useless
Del: bad code -- https://master.php.net/note/delete/83269/bad+code
Del: spam -- https://master.php.net/note/delete/83269/spam
Del: non-english -- https://master.php.net/note/delete/83269/non-english
Del: in docs -- https://master.php.net/note/delete/83269/in+docs
Del: other reasons-- https://master.php.net/note/delete/83269
Reject -- https://master.php.net/note/reject/83269
Search -- https://master.php.net/manage/user-notes.php