Using EXTR_PREFIX_ALL on a numeric array : extract « Data Structure « PHP
- PHP
- Data Structure
- extract
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
";
?>
Related examples in the same category