PHP Associative Arrays

PHP Associative Arrays

PHP Associative Arrays,Unlike Conventional Array Declaration . The Array is being  assigned with a Key word instead of being automatic assign an index Number,

Below shows the Example Code For Associative array

  1. There is a person name Ah Seng , the  assign Array Variable
  2. Inside the Array Variable it contains the Associative Array  named -> Job  & experience

<!DOCTYPE html>
<html>
<body>
 
<?php $ahSeng= array( "Job"=>"Programmer",
        "Experience"=>"11"


);


echo $ahSeng["Experience"];
 


?>
 
</body>
</html>






Leave a Comment

three × one =