note 127144 added to function.array-walk
| From: | christopher at crmldnrs dot com | Date: | Sat, 28 May 2022 23:36:13 +0000 |
| Subject: | note 127144 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218542@lists.php.net to get a copy of this message | ||
public function big_endian_array_walk(array $array, $callback) {
end($array);
for($i=sizeof($array);$i>0;$i--) {
$key = key($array);
$value = array_pop($array);
if(preg_match('/^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$/', $value)) {
call_user_func_array($callback, [$value, $key]);
}
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.12.131 (proxied: 70.168.153.252)
----
Manual Page -- https://php.net/manual/en/function.array-walk.php
Edit -- https://main.php.net/note/edit/127144
Del: integrated -- https://main.php.net/note/delete/127144/integrated
Del: useless -- https://main.php.net/note/delete/127144/useless
Del: bad code -- https://main.php.net/note/delete/127144/bad+code
Del: spam -- https://main.php.net/note/delete/127144/spam
Del: non-english -- https://main.php.net/note/delete/127144/non-english
Del: in docs -- https://main.php.net/note/delete/127144/in+docs
Del: other reasons-- https://main.php.net/note/delete/127144
Reject -- https://main.php.net/note/reject/127144
Search -- https://main.php.net/manage/user-notes.php