How to use Associative array in php
<?
$Accept=array("name" => "dev",
"occupation" => "engineer",
"age" =>24,
"master" => "php programming");
echo $Accept["name"] ;
echo"<br>";
echo $Accept["occupation"];
echo"<br>";
echo $Accept["age"];
echo"<br>";
echo $Accept["master"];
?>
<?
$Accept=array("name" => "dev",
"occupation" => "engineer",
"age" =>24,
"master" => "php programming");
echo $Accept["name"] ;
echo"<br>";
echo $Accept["occupation"];
echo"<br>";
echo $Accept["age"];
echo"<br>";
echo $Accept["master"];
?>
0 comments: