Last active
August 29, 2015 14:18
-
-
Save flowerains/a625fc7ee7816e1894f6 to your computer and use it in GitHub Desktop.
array_map,将回调函数作用到给定的数组的值上
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (get_magic_quotes_gpc()) { | |
$_GET = array_map('stripslashes', $_GET); | |
$_POST = array_map('stripslashes', $_POST); | |
} | |
array_map('trim',explode("\n",$a)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment