note 123688 deleted from function.trim by cmb
| From: | cmb@php.net | Date: | Wed, 13 Mar 2019 08:26:17 +0000 |
| Subject: | note 123688 deleted from function.trim by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210369@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Why is this not working?
var_dump(trim($_GET['x'], " \t\n\r\0\x0B"));
Address: test.php?x=%10%10%20%20%20%20%20%20%20%20%20%20%20%20
%20%20%20%20%20%20%20%20%20%09%09%09%09%09%09d%09%09%09
%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09%09
%09%09%09%09%09%09%09%09%10
And this is how it works: var_dump(trim($_GET['x'], " \t\n\r\0\x0B"));