Re: Re: what's the difference in the following code?

From: Date: Sat, 18 Oct 2008 15:44:26 +0000
Subject: Re: Re: what's the difference in the following code?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-282075@lists.php.net to get a copy of this message
I would understand it if it was like this .. <?php $search = isset($_GET['search']) ? $_GET['search'] : ''; # versus if (isset($_GET['search'])) { $search = $_GET['search']; } ?> In the first statement $search would either be set to $_GET['search'] or an empty string, whereas in the second statement $search would only be set, if there is a $_GET['search'] //A yeti

« previous php.general (#282075) next »