note 7868 added to array_walk
| From: | procom3 at pacbell dot net | Date: | Thu, 17 Aug 2000 20:54:37 +0000 |
| Subject: | note 7868 added to array_walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2224@lists.php.net to get a copy of this message | ||
I've noticed the problem of array_walk() and using member functions. This is the only way I was
able to use array_walk in OOP PHP ...
function walk_this_way(){
function auto_print($in){
echo($in . '<br>');
}
array_walk($this->array, auto_print);
}
http://www.php.net/manual/function.array-walk.php