+ 1

<?php //define a array using define function define ('animals', [ 'dog', 'cat', 'bird' ]); print(animals[1]); ?>

output........is what?

10th Nov 2017, 11:46 PM
Raj kumar Singh
Raj kumar Singh - avatar
4 Respuestas
+ 7
cat
10th Nov 2017, 11:47 PM
qwerty
qwerty - avatar
+ 5
correct 🙌
10th Nov 2017, 11:52 PM
Raj kumar Singh
Raj kumar Singh - avatar
+ 5
yes @Mohammed Mizory
10th Nov 2017, 11:54 PM
Raj kumar Singh
Raj kumar Singh - avatar
+ 3
output is "cat" because array in php starting from 0 so : [0] dog [1] cat [3] bird
10th Nov 2017, 11:53 PM
Mohammed Mizory
Mohammed Mizory - avatar