$cars = array(
array('name' => 'Toyota', price => 10000, ...),
array('name' => 'Ford', price => 20000, ...),
...
);
foreach($cars as &$car)
{
do_something($car['name']);
}
unset($car);
function do_something($name)
{
....
}
In do_something() function, is $name a reference or a value? If it is a reference, how do I just retrieve the value in the loop and pass that in the function?