note 50218 added to function.array-map

From: Date: Tue, 22 Feb 2005 05:34:05 +0000
Subject: note 50218 added to function.array-map
Groups: php.notes 
Request: Send a blank email to php-notes+get-85349@lists.php.net to get a copy of this message
This function comes in handy for $_POST, $_GET input. Allowing you to quickly check user input. For example: <?php $_POST = array_map('addslashes', $_POST); //or $_GET = array_map('addslashes', $_GET); ?> You could also use it to trim, strip tags etc. Saves a lot of time when having to check a lot of input values. ---- Manual Page -- http://www.php.net/manual/en/function.array-map.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50218 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50218&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50218&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50218&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50218&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50218&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50218&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85349) next »