0

what is ment by associtve array with exampale

what is ment by associtve array with show the with exampales ?

18th Sep 2016, 12:44 PM
vinay
vinay - avatar
1 Answer
+ 2
In associative array, the keys bear some relation to the value other than representing it's position in the array. They are suitable when use of numerical indexed arrays. eg. <?php $a=array('name'=>'vinay','email'=>'vinayxyz@gmail.com'); echo $a['name']."<br>"; echo $a['email']."<br>"; ?> o/p :- vinay vinayxyz@gmail.com
18th Sep 2016, 6:02 PM
Tushar
Tushar - avatar