PHP 8.5.0 Alpha 2 available for testing

Voting

: seven plus two?
(Example: nine)

The Note You're Voting On

gromit at mailinator dot com
16 years ago
Be aware that calling the method newInstanceArgs with an empty array will still call the constructor with no arguments. If the class has no constructor then it will generate an exception.

You need to check if a constructor exists before calling this method or use try and catch to act on the exception.

<< Back to user notes page

To Top