Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<?php
$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");
echo "Peter is " . $age['Peter'] . " years old.";
?>
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_array_assoc by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 14:29:47 GMT -->
</html>
Peter is 35 years old.