is just another way of writing
if ($status == 0) { return 0; } else { return 1; }
which makes more sense as this:
return $status;or if you only want to return 1 and 0 instead of just "true" and "false":
return $status ? 1 : 0;— Arien
In reply to Re: variable set to 0 ? 0 : 1
by Arien
in thread variable set to 0 ? 0 : 1
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |