Hello.
Code:
$car_id = "14";
$car = "ford";
$engine = "v4";
$arr = array($car_id => 14, $car, $engine);
this gives me this array:
car_id = 14,
0 = ford
1 = v4
Can I force my array to give the element the same key name as the php variable it was assigned to? I would like it to look like this:
car_id = 14,
car = ford,
engine = v4;
But I don't want to type car => $car . It is because I wan't to make the array text shorter for my php code...