Re: case ?

From: Date: Thu, 11 Jan 2001 05:04:02 +0000
Subject: Re: case ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-33898@lists.php.net to get a copy of this message
require includes the file BEFORE any processing is done - so yes it will be included - you need to use include() instead. --Joe On Wed, Jan 10, 2001 at 11:17:43PM -0500, Jon Rosenberg wrote: > I know this is kinda silly. but, if I have the following, will the file > only be included when the case is matched or does require always bring in > the file regarless? > > case blah: > require('include.php'); > do something.... > break; > > ----------------------------------------------------------------- > Jonathan Rosenberg > Be fierce, be fabulous, change the world! > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Joe Stump, PHP Hacker joestump98@yahoo.com http://www.miester.org/

« previous php.general (#33898) next »