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

Functions, Part I Forum

View Course » View Exercise

751 points
Submitted by
Peter Berry
about 3 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: For example, $func = "array"; $func(); doesn't work. Please do not mislead language learners with inaccuracies like this.

0 votes


I'd suggest you shoot them an e-mail to [email protected]. I don't know how often the admins frequent these pages.

854 points
Submitted by
about 3 years ago