I saw this in facebook leaked text ...
$disabled_warning = ((IS_DEV_SITE || IS_QA_SITE) && is_disabled_user($user));
now if I am not reading it wrong then it says that (($ var) can be used like a function?
No, it just sets it to true or false.
It would be tantamount to this:
if((IS_DEV_SITE || IS_QA_SITE) && is_disabled_user($user)) $disabled_warning = true; else $disabled_warning = false;
It might be naive, but $ disabled_warning only preserves the boolean result of the condition.
function variables look like regular functions anyway, except for the dollar sign in front in PHP.
function foo($s){ echo $s; } $bar = 'foo'; $bar('Cool');