Question:Which of the following way will you use for creating array in php? 

A $colorList =array("blue","black","white"); 

B $colorList[] = "red"; $colorList[] = "green"; $colorList[] = "black"; 

C $colorList[0] = "red"; $colorList[1] = "green"; $colorList[2] = "blue"; 

D $colorList = "red"; $colorList = "green"; $colorList = "blue"; 

+ Answer
+ Report
Total Preview: 500

Copyright © 2024. Powered by Intellect Software Ltd