News Archive
PhpRiot Newsletter
Your Email Address:

More information

Web Developer Juice: PHP Magic Functions: Best Part of Object Oriented PHP - Part 2

Note: This article was originally published at PHPDeveloper on 20 May 2011.

Web Developer Juice has posted the second part of their series looking at some of the "magic functions" that PHP has to offer - special functions that do automagic things in your scripts and classes. Part one can be found here.

In my previous post (PHP Magic Functions), I discussed about __construct, __destruct, __call and __callStatic. Lets explore a few more magic functions...

In this latest part of the series they look at three functions:

  • __set/__get
  • __invoke