+ 1
Can nay help me to write a PHP program to create a array of the following fruits{apple,banana,mango ,orange}.
PHP program
4 Answers
+ 2
$fruits = array('apple',.........'orange');
echo $fruits[0];
Output : apple
+ 1
$fruits = ['apple',.........'orange'];
echo $fruits[0];
Output : apple
+ 1
Thankyou
0
Both are same array