RE: [PHP] Surpressing a 'foreach' Error Message

From: Date: Fri, 06 Feb 2004 22:35:37 +0000
Subject: RE: [PHP] Surpressing a 'foreach' Error Message
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177059@lists.php.net to get a copy of this message
> craig <mailto:php@lonsbury.com> > on Friday, February 06, 2004 2:24 PM said: > > > if (is_array($project)) > > foreach ($project as $project_id => $value) { > > $fields[] = $project_id; > > $values[] = $value; > > } > > } > > you're missing a curly brace after the if (). > my bad, that's what you get when you don't actually run the code. Thank god for compilers ;) -Craig

« previous php.general (#177059) next »