News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
The Call Magic Function in PHP 5
June 09, 2009 @ 08:44:57

Continuing their look at the "magic functions" that are included in PHP5, DevShed has posted this new tutorial looking at the "__call" method to intercept calls to methods in a class that don't exist.

If you're a PHP developer who wishes to learn how to implement and use the set of magic functions that come included with PHP 5, you've come to the right place. [...] As the title of this article suggests, in the new few lines I'm going to take a deeper look at the"__call()" function, so that you can quickly become familiar with it.

They include code examples of the __call method in use - catching a call to a "fetch" method.

0 comments voice your opinion now!
tutorial call function magic


blog comments powered by Disqus

Similar Posts

Till Klampaeckel: Continuous Integration: Automated database setup with Doctrine on Travis-CI

Nikita Popov's Blog: Understanding PHP's internal function definitions (Part 2)

PHPBuilder.com: Getting Started with the Fuel PHP Framework

Giorgio Sironi's Blog: Never write the same code twice: Dependency Injection

PHP and Me Blog: Use Phing to Update your SVN-Version-Controlled Website Automatically, Through FTP


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant extension interview laravel release feature laravel5 framework api community threedevsandamaybe series development podcast library language opinion unittest introduction wordpress

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework