note 80234 added to function.array-map
| From: | sj-black at gmx dot net | Date: | Sat, 05 Jan 2008 04:26:13 +0000 |
| Subject: | note 80234 added to function.array-map | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134826@lists.php.net to get a copy of this message | ||
code
<?php
header('Content-Type: text/plain');
array_map('stripslashes', $_GET);
print_r($_GET);
?>
result
Array
(
[var] => foo\'bar\'
)
code
<?php
header('Content-Type: text/plain');
array_map('stripslashes', $_GET, $_POST);
print_r($_GET);
?>
result
<br />
<b>Warning</b>: Wrong parameter count for stripslashes() in
<b>C:\Programme\xampp\htdocs\jb\test.php</b> on line <b>4</b><br />
Array
(
[var] => foo\'bar\'
)
PHP: 5.2.4
----
Server IP: 217.13.201.10
Probable Submitter: 89.55.35.61
----
Manual Page -- http://www.php.net/manual/en/function.array-map.php
Edit -- https://master.php.net/note/edit/80234
Del: integrated -- https://master.php.net/note/delete/80234/integrated
Del: useless -- https://master.php.net/note/delete/80234/useless
Del: bad code -- https://master.php.net/note/delete/80234/bad+code
Del: spam -- https://master.php.net/note/delete/80234/spam
Del: non-english -- https://master.php.net/note/delete/80234/non-english
Del: in docs -- https://master.php.net/note/delete/80234/in+docs
Del: other reasons-- https://master.php.net/note/delete/80234
Reject -- https://master.php.net/note/reject/80234
Search -- https://master.php.net/manage/user-notes.php