PHP·98 questions

What are magic methods?

Answer
__construct — constructor.
__destruct — destructor.
__get, __set — access to properties.
__call — call to undefined methods.
__toString — string conversion.
Was this answer helpful?

More questions in this topic

Related questions from other topics