Hello guys i have coded something like this ..I just dont know wheather the code is right or not ..But i have a question
THe code is
$featured = array('name' => 12,'yeah' => 10);
foreach($featured as $key => $value){
echo $value['name'];
}
I know that value of name can be acessed by $featured['name'] but now I just need to know wheather the key of array can be acessed with value like $value['name']. Is it possbile like that ?..
Any help would be appreciated ..Thanks
$keyis in yourforeach()loop? - php.net/manual/en/control-structures.foreach.php