Insert values to an associative array with string keys in PHP
Description
The following code shows how to insert values to an associative array with string keys.
Example
//from ww w.j ava 2 s . c o m
<?php
$a=array("a"=>"red","b"=>"green");
array_push($a,"blue","yellow");
print_r($a);
?>
The code above generates the following result.