I just noticed PHP has an type casting to (unset), and I\'m wondering what it could possibly be used for. It doesn\'t even really unset the variable, it just casts
(unset)
For example it can be used like this
function fallback() { // some stuff here return 'zoo'; } var_dump(false ? 'foo' : fallback()); // zoo var_dump(false ? 'foo' : (unset) fallback()); // null
Even if fallback() returns "zoo" (unset) will clear that value.
fallback()