$c=array("a"=>"blue","b"=>"green");
array_push($c,$c["d"]="red");
print_r($c);
this code adding the key in to an array. But it also adding the indexed key to same key/value pair..how to avoid this indexed key? output:
Array
(
[a] => blue
[b] => green
[d] => red
[0] => red
)