+ 3

Could I use: $VAR = [1, 2, 3, 4]; for arrays

2nd Jul 2016, 11:29 PM
Danila Fedotov
Danila Fedotov - avatar
8 Answers
+ 7
you must use $VAR = (1, 2, 3, 4 ); for your array
8th Jul 2016, 9:34 AM
Eli Norman
Eli Norman - avatar
+ 4
syntext error.
7th Jul 2016, 5:42 AM
Rojan Dhimal
Rojan Dhimal - avatar
+ 3
No you can't.
3rd Jul 2016, 4:06 AM
Midhun Mathew
+ 2
$var=array(1,2,3,4);
17th Jul 2016, 6:20 PM
noushad mohammed
noushad mohammed - avatar
+ 1
no you can't $var=array(1,2,3,4);
1st Aug 2016, 2:34 AM
Gogo Essam
Gogo Essam - avatar
0
where is array ? you need to declare it
8th Aug 2016, 2:13 PM
Sagar Adawade
Sagar Adawade - avatar
0
yes, learn php7
10th Nov 2016, 7:15 AM
Vadim Knyazev
- 4
S
8th Jul 2016, 5:12 PM
sindhuja