在下面的:
<?php
$test = array(
array("fName" => "Paul", "lName" => "Jones", "Age" => "31"),
array("fName" => "Mike", "lName" => "Hunt", "Age" => "3"),
array("fName" => "John", "lName" => "Doe", "Age" => "32")
);
?>
<pre> <?php var_dump($test) ?> </pre>
<?php
foreach($test[0] as $key => $value) {
echo $value . " " ;
}
?>
这输出Paul Jones 31
我怎样才能让它只输出名字fNames
?
IEPaul, Mike, John