This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Peter Berry
almost 9 years

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.

Answer 55819823d3292f8c4f000015

0 votes

Permalink

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

points
Submitted by tozer83
almost 9 years