[PHP-DEV] Bug #10309 Updated: feature request From: jmoore <email protected>
Date: 06/17/01

ID: 10309
Updated by: jmoore
Reported By: fabiankessler <email protected>
Old-Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating system:
PHP Version: 4.0.4
Assigned To:
Comments:

try:

$c =& (true)? $a: $b;

might work better. Havnt tested it though.

Previous Comments:
---------------------------------------------------------------------------

[2001-04-12 15:26:32] fabiankessler <email protected>
$a = 'foo';
$b = 'bar';

$c = (true) ? &$a : &$b;

=> syntax error, have to do

if (true) {
  $c = &$a;
} else {
  $c = &$b;
}

would be nice :)

---------------------------------------------------------------------------

ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10309&edit=2

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>