everyone. I write this code in my test php. Once I execute in browser, it's just display the initial, the first letter of array. For further, here is my code:
$args = array ('computer'=>'pentium', 'notebook'=>'atom', 'gadget'=>'tab');
foreach ($args as $key => $val)
{echo $key['val'];}
and the result in my browser is "cng" which I think c = computer, n = notebook, g = gadget.
so, would someone explain me how could it happens?
thanks in advance