Class functions __set __get

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Class functions __set __get

Post by phppage »

Where the class functions __set and __get release in PHP5 or are they available in PHP4 as well? Looked at PHP.net and could not find them listed.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

They're not real functions so won't be listed in the function reference. It's like searchg for __construct().

No, they're PHP5 only and are what PHP call overloaded functions -- even though that term doesn't strike me as correct because overloading is something different all together :P
User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Post by phppage »

Many thanks. Saved me hours trying to get that to work. :D
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply