> How can I echo the name of the of the second array (subArray)?  The name
for value
<?php

$test=array     (
                                'a'=>array('1','2'.'3'),
                                'c'=>array('6','5'.'4'),
                                'd'=>array('8','9'.'10'),
                        );


$r=next($test);
echo $r[0].' or :'."\n";
foreach (next($test) as $value) echo $value;
?>

or do you need the keys?
something like:
echo implode(",",array_keys(next($test))); 

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

Reply via email to