Possible Duplicate: What are the PHP operators “?” and “:” called and what do they do?
From http://twitto.org/
<?PHP
require __DIR__.'/c.php';
if (!is_callable($c = @$_GET['c'] ?: function() { echo 'Woah!'; }))
throw new Exception('Error');
$c();
?>
Twitto uses several new features available as of PHP 5.3:
- The DIR constant
- The ?: operator
- Anonymous functions
What does number 2 do with the ?: in PHP 5.3?
Also, what do they mean by anonymous functions? Wasn't that something that has existed for a while?
create_function
before. – Handyman