Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - News > Syndicated Linux News
User Name
Syndicated Linux News This forum is for the discussion of Syndicated Linux News stories.


  Search this Thread
Old 04-15-2009, 02:51 AM   #1
LXer NewsBot
Registered: Dec 2005
Posts: 107,545

Rep: Reputation: 117Reputation: 117
LXer: PHP Magic Features

Published at LXer:

In this article we'll look at PHP's "magic" features: Magic methods are class methods with specific names, are used to perform various specialized tasks. They are grouped into two: overloading methods and non-overloading methods. Overloading magic methods are used when your code attempts to access a method or a property which does not exist. Non-overloading methods perform other tasks. Magic functions are similar to magic methods, but are just plain functions outside any class. Currently there is only one magic function in PHP. Magic constants are similar to constants in notation, but act more like "dynamic" constants - their value depends on where you use them. We'll also look at some practical examples of using some of these, and lastly we'll check out what new features PHP 5.3 is going to add.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Object-Oriented Features New to PHP 5 LXer Syndicated Linux News 0 07-17-2006 02:24 AM
Using Partition Magic and Boot Magic to install Linux zathrus MEPIS 4 01-14-2006 09:24 PM
Compiling extra features into PHP stefaandk Linux - Newbie 3 06-24-2005 07:55 PM
simple: php addslashes, magic quotes, etc etc? opioid Programming 6 03-01-2005 02:43 PM
I need partition magic and ghost replacements - don't need too many features though versaulis Linux - Software 4 09-28-2003 02:54 PM > Forums > Linux Forums > Linux - News > Syndicated Linux News

All times are GMT -5. The time now is 03:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration