$foo = emptyor($foo, "bar");
I'm not really sure that you'd use this for. Set $foo to either the original value (if $foo was empty before) or "bar"? Is that empty as in empty()? So you could end up with null, "", 0, "0", false or "bar"?
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php