Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] Does PHP have the unary operator? From: Adam Trachtenberg (adam <email protected>)
Date: 03/24/99

On Wed, 24 Mar 1999, Dan Delaney wrote:

> Does PHP have the unary operator, like C, (expr ? value1 : value2)?
> So that you could do something like:
>
> print (isset($somestring) ? $somestring : 'A default value to return' );

Yes.

-adam

-- 
/ adam maccabee trachtenberg | visit college life online \
\ adam <email protected>           | http://www.student.com    /

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3 List administrator: zeev-list-admin <email protected>