note 88771 added to function.addslashes
| From: | leocullen at fastmail dot fm | Date: | Fri, 06 Feb 2009 21:06:24 +0000 |
| Subject: | note 88771 added to function.addslashes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150320@lists.php.net to get a copy of this message | ||
this is my version of an addslashes function, useful for processing $_POST array:
function add_slashes ($an_array) {
foreach ($an_array as $key => $value) {
$new_array[$key] = addslashes($an_array[$key]);
}
}
then call it:
add_slashes($_POST);
----
Server IP: 217.160.72.57
Probable Submitter: 91.40.238.185
----
Manual Page -- http://www.php.net/manual/en/function.addslashes.php
Edit -- https://master.php.net/note/edit/88771
Del: integrated -- https://master.php.net/note/delete/88771/integrated
Del: useless -- https://master.php.net/note/delete/88771/useless
Del: bad code -- https://master.php.net/note/delete/88771/bad+code
Del: spam -- https://master.php.net/note/delete/88771/spam
Del: non-english -- https://master.php.net/note/delete/88771/non-english
Del: in docs -- https://master.php.net/note/delete/88771/in+docs
Del: other reasons-- https://master.php.net/note/delete/88771
Reject -- https://master.php.net/note/reject/88771
Search -- https://master.php.net/manage/user-notes.php