programming-examples/php/Arrays/PHP script to get the first element of the above array.php
2019-11-15 12:59:38 +01:00

4 lines
92 B
PHP

<?php
$color = array(4 => 'white', 6 => 'green', 11=> 'red');
echo reset($color)."\n";
?>