if foreach
| From: | Laurent Drouet | Date: | Wed, 29 May 2002 10:03:51 +0000 |
| Subject: | if foreach | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99673@lists.php.net to get a copy of this message | ||
Hi !
I would like to know if somebody already done the following thing :
I'm writing a function which accept 2 args : $conditions and $summary
in my function I have to construct an if statement with these arg like :
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 ?
Laurent Drouet