note 39461 deleted from language.variables by didou
| From: | didou@php.net | Date: | Thu, 29 Jan 2004 12:58:04 +0000 |
| Subject: | note 39461 deleted from language.variables by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64371@lists.php.net to get a copy of this message | ||
Note Submitter: volf44@mail.ru
----
How about this:
<?php
$select = true;
$test = 0;
// to do: reference $test if $select is true else init $val to 1
$val = ( $select )? &$test: 1; // syntax error
// equivalence
$val = 1;
if( $select ) $val = &$test;
?>