<html>
<body>
<?php
function arr(){
$a[0]=2;
$a[1]=4;
$a[2]="hello";
echo $a[0]." ".$a[1]."<br>".$a[2];
}
arr();
?>
</body>
</html>
<html>
<body>
<?php
function salarie(){
$a=array("Vanquish"=>700000 ,"Prabhpreet"=>10000,"Gursharan"=>600000);
echo "The salarie of Vanquish is".$a['Vanquish'];
echo "The salarie of Prabhpreet is".$a['Prabhpreet'];
echo "The salarie of Gursharan is".$a['Gursharan'];
}
salarie();
?>
</body>
</html>
output:-
The salarie of Vanquish is700000The salarie of Prabhpreet is10000The salarie of Gursharan is600000