Question:If you want to display all elements what will you use of the following script? <?php $colorList[0] = "red"; $colorList[1] = "green"; $colorList[2] = "blue"; $colorList[3] = "black"; ?> 

A foreach ($colorList as $value) { echo $value; } 

B echo $colorList[0]; 

+ Answer
+ Report
Total Preview: 563

Copyright © 2024. Powered by Intellect Software Ltd