Re: Bug #10309: feature request
| From: | teo at gecadsoftware dot com | Date: | Thu, 12 Apr 2001 20:26:46 +0000 |
| Subject: | Re: Bug #10309: feature request | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-51512@lists.php.net to get a copy of this message | ||
Hi fabiankessler!
On Thu, 12 Apr 2001, fabiankessler@usa.net wrote:
> From: fabiankessler@usa.net
> Operating system: all
> PHP version: 4.0.4
> PHP Bug Type: Feature/Change Request
> Bug description: feature request
>
> $a = 'foo';
> $b = 'bar';
>
> $c = (true) ? &$a : &$b;
suggestions:
1.let $expr be the evaled expression, then you can use the same
criptic : $expr && $c=&$a || $c=&$b;
2.use a function returning a reference as a wrapper, if appliable
>
> => syntax error, have to do
>
> if (true) {
> $c = &$a;
> } else {
> $c = &$b;
> }
>
> would be nice :)
>
>
> --
> Edit Bug report at: http://bugs.php.net/?id=10309&edit=1
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
-- teodor