note 89819 added to function.stripslashes

From: Date: Tue, 24 Mar 2009 16:07:46 +0000
Subject: note 89819 added to function.stripslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-152396@lists.php.net to get a copy of this message
I use this function in my class to stripslashes arrays including NULL-check: <?php private function stripslashes_deep($value) { if(is_array($value)) { foreach($value as $k => $v) { $return[$k] = $this->stripslashes_deep($v); } } elseif(isset($value)) { $return = stripslashes($value); } return $return; } ?> ---- Server IP: 62.2.182.223 Probable Submitter: 62.12.175.170 ---- Manual Page -- http://www.php.net/manual/en/function.stripslashes.php Edit -- https://master.php.net/note/edit/89819 Del: integrated -- https://master.php.net/note/delete/89819/integrated Del: useless -- https://master.php.net/note/delete/89819/useless Del: bad code -- https://master.php.net/note/delete/89819/bad+code Del: spam -- https://master.php.net/note/delete/89819/spam Del: non-english -- https://master.php.net/note/delete/89819/non-english Del: in docs -- https://master.php.net/note/delete/89819/in+docs Del: other reasons-- https://master.php.net/note/delete/89819 Reject -- https://master.php.net/note/reject/89819 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#152396) next »