Programming Pandit

c/c++/c#/Javav/Python


Latest Update

Monday, February 6, 2023

$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 $color[4];

?>





No comments:

Post a Comment