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

Functions, Part I Forum

View Course » View Exercise

751 points
D3e78f7e0f7526adf6370cf17dba9e15?s=140&d=retro
Submitted by
Peter Berry
over 2 years ago

array() is NOT a function

This exercise says:

Arrays are a very common thing to use
in programming. In fact, array() is
actually a function!

In fact, array() is emphatically NOT a function. It is a language construct for representing array literals. See: http://php.net/manual/en/function.array.php For example, $func = "array"; $func(); doesn't work. Please do not mislead language learners with inaccuracies like this.


0 votes

permalink

I'd suggest you shoot them an e-mail to support@codecademy.com. I don't know how often the admins frequent these pages.

854 points
527be8e5abf821589f00145e_829741181
Submitted by
tozer83
over 2 years ago