note 11457 modified in Classes and Objects by jmcastagnetto

From: Date: Wed, 21 Feb 2001 18:36:22 +0000
Subject: note 11457 modified in Classes and Objects by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-11373@lists.php.net to get a copy of this message
[Editor's note: 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.] 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/classes-and-objects.php

« previous php.notes (#11373) next »