Ah, it seems you're right — that was added in PHP4. I should have read the fine manual before commenting 
The other option here, then, would be:
Code:
if (@$_POST['description'] === NULL || @$_POST['id'] === NULL)
Something peculiar happened when I was trying to test out empty():
Code:
php > print empty("");
php > print empty("0") ? "Yes" : "No";
php > print (empty("0") ? "Yes" : "No");
php > print "huh?";
huh?
php > print true ? "yes" : "no";
yes
php > print empty("0") ? "Yes" : "No";
php > error_reporting(E_ALL);
php > print empty("0") ? "Yes" : "No";
php > echo("Hi");
Hi
php > echo(true ? "Yes" : "No");
Yes
php > echo(empty(0) ? "Yes" : "No");
php >
It seems I can't print the value of an expression containing empty(). Maybe I'm missing something here.
Bookmarks