note 91341 added to function.filter-var-array
| From: | eguvenc at gmail dot com | Date: | Sat, 06 Jun 2009 22:45:35 +0000 |
| Subject: | note 91341 added to function.filter-var-array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156423@lists.php.net to get a copy of this message | ||
//an example of simply sanitize an array..
$data = array(
'<b>bold</b>',
'<script>javascript</script>',
'P*}i@893746%%%p*.i.*}}|.dw<?php echo "echo works!!";?>');
$myinputs = filter_var_array($data,FILTER_SANITIZE_STRING);
var_dump($myinputs);
//OUTPUT:
//formarray(3) { [0]=> string(4) "bold" [1]=> string(10) "javascript"
[2]=> string(26) "P*}i@893746%%%p*.i.*}}|.dw" }
----
Server IP: 160.75.100.7
Probable Submitter: 94.120.242.177
----
Manual Page -- http://www.php.net/manual/en/function.filter-var-array.php
Edit -- https://master.php.net/note/edit/91341
Del: integrated -- https://master.php.net/note/delete/91341/integrated
Del: useless -- https://master.php.net/note/delete/91341/useless
Del: bad code -- https://master.php.net/note/delete/91341/bad+code
Del: spam -- https://master.php.net/note/delete/91341/spam
Del: non-english -- https://master.php.net/note/delete/91341/non-english
Del: in docs -- https://master.php.net/note/delete/91341/in+docs
Del: other reasons-- https://master.php.net/note/delete/91341
Reject -- https://master.php.net/note/reject/91341
Search -- https://master.php.net/manage/user-notes.php