News Feed
Sections




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

DevShed:
Magic Functions in PHP 5
May 27, 2009 @ 08:42:38

In this new tutorial on DevShed they take a look at a feature added in PHP5 to help makes developers' lives easier - magic functions. These magic functions (like __get and __set) can help you catch things a bit closer to the execution of the language than an if or other conditional could and to do some very fun things.

It's not breaking news that the release of PHP 5 drastically changed the way that many developers build their web-based programs. The incorporation of a much more robust object model, along with the introduction of native exceptions, type hinting and so forth (add your own improvement to the list) has given the language the maturity that we see in it today. This seven-part article series will explain an important new feature: magic functions.

This first part of the series looks at __get and __set and how to use them for property overloading in a class.

0 comments voice your opinion now!
tutorial function magic


blog comments powered by Disqus

Similar Posts

PHPMaster.com: Base Converting and Binary Operators

Maarten Balliauw's Blog: Lightweight PHP application deployment to Windows Azure

Marcelo Gornstein's Blog: Writing PHP applications with Doctrine2 as ORM and Ding as DI container

Sameer Borate's Blog: Generating a color palette from a image in php

PHPMaster.com: 5 More PHP Security Vulnerabilities


Community Events

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


introduction release language podcast framework community library list opinion api series example extension interview php7 voicesoftheelephpant laravel version laravel5 security

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