This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Arrays Forum

View Course » View Exercise

1888 points
E609f7322f5bc6855717f4adb908d95d?s=140&d=retro
Submitted by
summitwei
over 4 years ago

What's the difference?

What is the difference from using [] to using {}? Other than {} needs the shift button?


0 votes

permalink

I don't think there is a difference when using php.

346 points
5195240b2ff1a57196000056_249384371
Submitted by
Izzie McKenzie
about 4 years ago


0 votes

permalink

In arrays you can use both. But in functions you can't. For ex. you can't use [ ] in IF function (you will get a error). That is the syntax and you have to obey it.

562 points
512167830900d4adc70079b1_866407463
Submitted by
MichaƂ A.
about 4 years ago