Hi
I have an array showing position and name, and these are linked
$posname = array("GK" =>"Bradders","Def"=>"Wilko");
I am trying to add to this array using the array_push function.
array_push($posname,("Mid"=>"JP"));
When I run
while(list($pos,$name) = each($posname)){
echo $pos. " ".$name." - ";
}
depending upon the position and number of quote marks, I either get the output showing => or recieve a unexpected T_DOUBLE_ARROW message for the new values.
Please can somebody put me on the right track?
Many Thanks
Dave