+ 1

Can nay help me to write a PHP program to create a array of the following fruits{apple,banana,mango ,orange}.

PHP program

24th Jan 2022, 8:59 AM
Shankar Oli
4 Answers
+ 2
$fruits = array('apple',.........'orange'); echo $fruits[0]; Output : apple
24th Jan 2022, 9:15 AM
Manimaran K
Manimaran K - avatar
+ 1
$fruits = ['apple',.........'orange']; echo $fruits[0]; Output : apple
24th Jan 2022, 9:15 AM
Manimaran K
Manimaran K - avatar
+ 1
Thankyou
24th Jan 2022, 9:18 AM
Shankar Oli
0
Both are same array
24th Jan 2022, 9:16 AM
Manimaran K
Manimaran K - avatar