[nycphp-talk] Accessing Properties in PHP OOP
Adam Maccabee Trachtenberg
adam at trachtenberg.com
Thu Aug 26 11:12:30 EDT 2004
On Thu, 26 Aug 2004, Joseph Crawford Jr. wrote:
> better yet, if you want to make things work with php5 as well, do this
>
> class client {
> function client() {
> $this->__construct();
> }
>
> function __construct() {
> //constructor here
> }
>
> }
This is unnecessary, as PHP 5 will "fallback" if it can't find a
constructor named __construct() upon the old PHP 4 style constructor
naming scheme.
-adam
--
adam at trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!
More information about the talk
mailing list