Ver original$action = (empty($_POST['foo'])) ? 'default' : $_POST['foo'];// PHP5.3+$action = ($_POST['foo']) ?: 'default';