Re: if foreach

From: Date: Wed, 29 May 2002 10:13:39 +0000
Subject: Re: if foreach
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99676@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * and then Laurent Drouet declared.... > if > foreach ($conditions as $key=>$val) > > ($val==$summary["$key"]) > { > statements to execute if the condition is right for all > $conditions > } > > How can i do it ? if($conditions) { foreach($conditions as $key => $val) { do_stuff(); } } else print("the array is empty"); - -- Nick Wilson // www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE89KnTHpvrrTa6L5oRAs10AJ9MT0btFuEhFYjPs4O+CnO7rK+cVgCfdOV1 bzDoelf7PGD0/Q8v3RqetI4= =jtsm -----END PGP SIGNATURE-----

« previous php.general (#99676) next »