Re: Simple coding question
| From: | Simas Toleikis | Date: | Fri, 19 Nov 2004 10:22:03 +0000 |
| Subject: | Re: Simple coding question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202496@lists.php.net to get a copy of this message | ||
Octavian Rasnita wrote:
$var = $_GET['var'] || 'value'; How about:$var = isset($_GET['var']) ? $_GET['var'] : 'value';