$color = array(4 => 'white', 6 => 'green', 11=> 'red');Write a PHP script to get the first element of the above array
<?php $color = array(4 => 'white', 6 => 'green', 11=> 'red'); echo reset($color)."\n"; ?>
Sample Output:
white
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer