Which of the following is NOT a valid function declaration?

Which of the following is NOT a valid function declaration?
A . function x ($x1 = array())
B . function x (A $x1)
C . function x (A $x1 = null)
D . function x ($x1 = $x2)

Answer: D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments