Re: IF with multiple values for a variable
| From: | Stut | Date: | Wed, 13 Jun 2007 19:26:42 +0000 |
| Subject: | Re: IF with multiple values for a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256938@lists.php.net to get a copy of this message | ||
Dan Shirah wrote:
if ($type == 'T','D','L' { $get_id.=" payment_request WHERE id = '$payment_id'"; }if (in_array($type, array('T', 'D', 'L'))) {
...} -Stut