Mega Code Archive

 
Categories / Php / Data Type
 

Creating an associative array of shapes

<?php $shapes = array('S' => 'Cylinder',                 'N' => 'Rectangle',                 'A' => 'Sphere',                 'O' => 'Sphere',                 'P' => 'Rectangle'); ?>