Teddy D

Generation

translateMon, 30 Jan 2023

insert values from the loop

$a = array( array('name' => 'A', 'age' => 12), array('name' => 'B', 'age' => 13), array('name' => 'C', 'age' => 14) ); foreach($a as $item) { echo $item['name'].' is '.$item['age'].' years old'; }

Questions about programming?Chat with your personal AI assistant