Re: note 11457 added to Classes and Objects

From: Date: Wed, 21 Feb 2001 18:37:41 +0000
Subject: Re: note 11457 added to Classes and Objects
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-11374@lists.php.net to get a copy of this message
See the info in: http://www.php.net/manual/en/migration4.php The behavior has changed, you can init that member var inside the constructor of your class, but not assign an object when declaring it, a scalar would be OK. Will add the note above to your contribution. --- andre@cota-robles.com wrote: > This works okay in PHP3 but I get a parser error > when using PHP4.03pl1: > > class NavClass { > var $db = new DB_example; > . > . > . > functions > . > . > } > > Is nesting classes a bad idea? > > http://www.php.net/manual/en/language.oop.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/

« previous php.notes (#11374) next »