Why is this array_walk_recursive action not working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux