Foreach wrapper for iterating argument

Iterates array using callback function. Read more.

php
fork add to bundle source
function for_each(&$array, $callback) { return array_walk($array, $callback); }

usage

load_function('php_foreach'); $array = ['Red', 'Blue']; for_each($array, function($value, $key) { echo $key . ': ' . $value . "\n"; }); // 0: Red // 1: Blue
← how to use this in app?
create log ...inout