Creating an associative array of shapes : Associate Array « Data Structure « PHP
- PHP
- Data Structure
- Associate Array
Creating an associative array of shapes
<?php
$shapes = array('S' => 'Cylinder',
'N' => 'Rectangle',
'A' => 'Sphere',
'O' => 'Sphere',
'P' => 'Rectangle');
?>
Related examples in the same category