Hi everyone!
Should be straight forward but having a bit of a mental block!
i have a multiple array consisting of three arrays:
$product_list= array($name,$stock,$unit_id);
where $name is an array / list of product names
$stock is an array / list of stock id's
$unit_id is an array / list of unit_id's for units of the products
all these arrays are of equal length and tested to make sure they contain data
SO
if i want to access the data from product list is the following correct for the values, after the very first values which i will use a seperate for loop for (i.e. when $a = 0):
for ($a=1; $a<(count($product_list)); $a++){ // goes through the array
$name = $product_list[$a][0][0]; // giving the product name
$stock = $product_list[0][$a][0]; // giving the stock id corresponding to that paroduct
$unit = $product_list[0][0][$a];
}
Thank you in advance for any help.