Octavian Rasnita wrote:
$var = $_GET['var'] || 'value';
How about:
$var = isset($_GET['var']) ? $_GET['var'] : 'value';
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Octavian Rasnita wrote:
$var = $_GET['var'] || 'value';
How about:
$var = isset($_GET['var']) ? $_GET['var'] : 'value';
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php