Fw: [PHP-DEV] feature request
| From: | Boian Bonev | Date: | Mon, 19 Mar 2001 14:04:30 +0000 |
| Subject: | Fw: [PHP-DEV] feature request | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49346@lists.php.net to get a copy of this message | ||
oops, forgot the list.
i think no lang extension is needed. here is my reason - you can very easy
test for isset, what about !isset? then the condition will be or not and and
all the thing becomes messy.
b.
----- Original Message -----
From: "Boian Bonev" <boian@bonev.com>
To: "Gavin Sherry" <swm@linuxworld.com.au>; "Cameron"
<gamr@gattcomp.com.au>
Sent: Monday, March 19, 2001 2:23 PM
Subject: Re: [PHP-DEV] feature request
> hi,
>
> better write you own checker in php... and implement and/or...
> here is a sample :-)))
>
> <?
> function isset_and() {
> $numargs=func_num_args();
> $tt=func_get_arg($i);
> $res=isset($tt);
> for ($i=1;$i<$numargs;$i++) {
> $tt=func_get_arg($i);
> echo "$tt\n";
> $res&=isset($tt);
> }
> return $res;
> }
> $a='asda';
> $b='asa';
> echo isset_and($a,$b,$c);
> echo "\n";
> $c='asa';
> echo isset_and($a,$b,$c);
> ?>
>
>