RE: [PHP] How do I stop foreach if $menu not set??

From: Date: Tue, 11 Jun 2002 22:04:51 +0000
Subject: RE: [PHP] How do I stop foreach if $menu not set??
Groups: php.general 
Request: Send a blank email to php-general+get-101628@lists.php.net to get a copy of this message
Change introduction to a variable with $ in front of it or put it in quotes "introduction". > What Can I do to stop the foreach function from working if > $menu is not > set?? > > <? > if ($menu==(introduction)) {$sub = array( > 'overview.php' => 'Overview', > 'moreinfo.php' => 'More Info' > ); > } **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much.

« previous php.general (#101628) next »