|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-04-28 10:43 UTC] rc at opelgt dot org
Description: ------------ It would be nice (reduces lines in code) when stripslashes could handle arrays. For example stripslashes($_COOKIE); PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
You can already do this with array_map(): $cookies = array_map('stripslashes', $_COOKIE); I don't think there's any need to special case stripslashes() to handle arrays when there's already a generic method to accomplish this.