+ 2
Can anyone give me an example of associative array using loop....
example
3 Antworten
+ 3
Sure, is this the type of thing your after?
$array = array('Tom' => '27', 'Bob' => '21');
$names = array_keys($array);
for($i=0; $i < count($names); ++$i) {
echo $names[$i] . ' ' . $array[$names[$i]] . "<br>";
}
+ 3
phenom** ... CONGRATULATIONS FOR ANSWERER BADGE😇🌟🌟
+ 2
thanks.....ihateonions