B
Bill
What do you think is better:
....
return ($rc and $rc == 1) ? 1 : 0;
}
or
$rc and $rc == 1 and return 1;
return 0;
}
This is for a function that does some processing and then returns 1 on
success and 0 on failure.
Opinions?
....
return ($rc and $rc == 1) ? 1 : 0;
}
or
$rc and $rc == 1 and return 1;
return 0;
}
This is for a function that does some processing and then returns 1 on
success and 0 on failure.
Opinions?