array_push in multidimensional array
Posted: Mon Mar 28, 2005 11:28 pm
Hi all 
I have this array pre-defined:
I want to put data into it during a loop using array_push. I tried something like this and it didn't work (obviously
):
Does anyone know of a way I can get the $service_id and $service_price data into that array each time I move through the loop? I presumed array_push but am now unsure.
Thanks for your time
I have this array pre-defined:
Code: Select all
$services_array2 = array(array(0,0));Code: Select all
array_push ( $services_array2, ($service_id, $service_price));Thanks for your time