I have this foreach here
<?php foreach($division as $value){ $arraydivision[] = $value['name']; } ?>
but keys are returned as 0, 1, 2, 3, 4
I would like the keys to be also names ... I tried
<?php foreach($division as $value){ $arraydivision[] = $value['name'] => $value['name']; } ?>
But it didn’t help, it just gave me an error ... does anyone know why this is not working?
source share