Hi fabiankessler!
On Thu, 12 Apr 2001, [EMAIL PROTECTED] wrote:

> From:             [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- teodor

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to