Learning PHP and MySQL
Example 06-11 Using EXTR_PREFIX_ALL on a numeric array
<?php
$shapes=array( 'Cylinder','Rectangle');
extract($shapes,EXTR_PREFIX_ALL,"shapes");
echo "Shapes_0 is $shapes_0 <br>";
echo "Shapes_1 is $shapes_1";
?>
Posted by on 08/07 at 10:25 AM
Next entry: Example 08-01 The contents of the my_backup.sql file
Previous entry: Example 06-10 Using extract with the EXTR_PREFIX_ALL directive