note 53721 deleted from function.include by didou

From: Date: Fri, 10 Jun 2005 13:23:41 +0000
Subject: note 53721 deleted from function.include by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90228@lists.php.net to get a copy of this message
Note Submitter: nigelf at esp dot co dot uk Reason: useless ---- You cannot use an "include" within a class, outside of a function declaration. Doing so will produce an error "unexpected T_INCLUDE". For example: I wanted to move some class variables (arrays) into an include file, as they were used across several classes, and it would make any changes easier to manage. However, as class variables are declared outside of a function block they can't then be included.

« previous php.notes (#90228) next »