NYCPHP Meetup

NYPHP.org

[nycphp-talk] Setting up PHP 4 OOP to work in PHP 5 environment

csnyder chsnyder at gmail.com
Thu Feb 24 12:16:24 EST 2005


On Thu, 24 Feb 2005 10:38:12 -0500, Randal Rust
<rrust at r2communications.com> wrote:

> 
> $employer = new Employer
> $db=$employer->db;
> 
> as far as i knew, this just allowed me to put less code in my pages.
> 

True, but you'll have four objects in memory per Employer object you create.
It's not really that big a deal, and maybe you need a separate Display
object for each Employer...



More information about the talk mailing list