Tuesday, 20 March 2012

ASSOCIATIVE ARRAY

<html>
<head>
<title>****   associative array  ****</title>
</head>
<body>
<?php
$ages['Peter'] = "32";
$ages['Quagmire'] = "30";
$ages['Joe'] = "34";
echo "Peter is " . $ages['Peter'] . " years old.";
?>
</body>
</html>
 
OUTPUT
Peter is 32 years old.

 

No comments:

Post a Comment