I was wondering if its possible, to loop through an array but have each key as a variable?
My current code is below, with an example expected output:
<?php
$arr = array(array('id' => 24, 'name' => 'luigi'), array('id' => 12, 'name' => 'luiginsd'));
foreach ($arr as $value) {
echo $id . '<br />';
}
/*
which would output:
24<br />
12<br />
*/
?>
All help is appreciated.