Why is this array_walk_recursive action not working?

From: Date: Thu, 24 Feb 2011 11:01:07 +0000
Subject: Why is this array_walk_recursive action not working?
Groups: php.general 
Request: Send a blank email to php-general+get-311557@lists.php.net to get a copy of this message
PHP users, I obviously don't understand what array_walk_recursive does. Can someone break down in simple terms why the following doesn't work? - - - $karamohOutput['test'] = ""; function test_print($item, $key) { return "$key holds $item\n"; } $karamohOutput['test'] .= array_walk_recursive($karamohArray, 'test_print'); - - - Any advice would be much appreciated. -- Dave M G

« previous php.general (#311557) next »