RE: Like ternary but without the else.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Justin Lilly <mailto:justinlilly@xxxxxxxxx>
    on Friday, February 25, 2005 3:10 PM said:

> This should do the trick:
> 
> $something ? $this=$that

Actually that gives a synax error. But I've figured it out based on your
suggestion.

It's actually:

<?php

  $something && $this = $that;

?>



Chris.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux