Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 







Current Newswire:

BM Ups Its Processor Power to 7

KDE.org Relaunched for Software Compilation 4.4

The application is the new the operating system

Linux can compete with the iPad on price, but where’s the magic?

The Bruno Knaapen Technology Learning Center is Established

Anjal: GNOME's Evolution for Netbooks

Linux Mint 8 KDE Community Edition

Open source means freedom from 'anti-features'

GTalX - Google Voice Chat has arrived in Ubuntu 9.10 (Karmic)

Top 10 Super Bowl tech ads




UNIX Systems Administrator (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume
:Examine PHP V5.3.0 features under the microscope
Examine PHP V5.3.0 features under the microscope
Nov 17, 2009, 00 :03 UTC (0 Talkback[s]) (1952 reads)

(Other stories by Stephen B. Morris)

[ Thanks to An Anonymous Reader for this link. ]

"Class method overloading

"The term overloading in PHP is a little different from the usual object-oriented context. In the Java™ language or C#, an "overloaded" method is one that provides code for a range of different parameter lists. For example, if I have a method called draw(String str), an overloaded version can have the following form: draw(String str, int i). This use of the method symbol name is referred to as the method signature and, for the purposes of overloading, the return type is ignored.

"In PHP, "overloading" is used to refer to dynamically created methods and properties. This is in effect dynamic code, and any such dynamic entities are processed by what are called magic methods. You can create these magic methods in a class for a variety of action types. Then, the overloading methods are invoked at the point in your code where you interact with undeclared or invisible properties or methods. This style of language overloading provides you with a substantial degree of flexibility.

"This all sounds complicated, so look at an example to make it more concrete. Listing 4 illustrates using PHP overloading to invoke object and class methods."

Complete Story

Related Stories:
How To Set Up WebDAV With Apache2 On Ubuntu 9.04(Oct 27, 2009)
Using Iterators in PHP(Oct 23, 2009)
Installing Lighttpd With PHP5 And MySQL Support On Mandriva 2009.1(Sep 29, 2009)
How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Lenny(Sep 11, 2009)
Installing Nginx With PHP5 And MySQL Support On Fedora 11(Sep 10, 2009)
A Twist In Namespaces: A New Revolution in PHP(Aug 28, 2009)
Installing Nginx With PHP5 And MySQL Support On Ubuntu 9.04(Jul 14, 2009)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers