php3-list | 199903
Date: 03/24/99
- Next message: Rasmus Lerdorf: "Re: [PHP3] Does PHP have the unary operator?"
- Previous message: Dan Delaney: "[PHP3] Does PHP have the unary operator?"
- In reply to: Dan Delaney: "[PHP3] Does PHP have the unary operator?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] Does PHP have the unary operator?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Rasmus Lerdorf: "Re: [PHP3] Does PHP have the unary operator?"
- Previous message: Dan Delaney: "[PHP3] Does PHP have the unary operator?"
- In reply to: Dan Delaney: "[PHP3] Does PHP have the unary operator?"
- Next in thread: Rasmus Lerdorf: "Re: [PHP3] Does PHP have the unary operator?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

