I have created the below multidimensional associative array as a template, and have got a search function saving the resulting array number to the variable $key. Am I able to use this to retrieve the name allocated to the array?
<?php
//Leave the first variable in each array empty (temporary fix in the array_search function)
// $ReferenceNumber = array( "", "ReferenceNumber",
//create minor arrays
$product1 = array('mobile', 'phone', 'nokia');
$product2 = array('mobile', 'phone', 'nokia');
$product3 = array('mobile', 'phone', 'nokia');
//put them in the main array, with names
$ProductKeywords = array('product1' => $product1, 'product2' => $product2, 'product3' => $product3);
?>