Posted by Janwillem Borleffs on 11/16/18 11:28
frizzle wrote:
> what do you mean with making the $state argument leading?
> Indeed, it's meant to close the table when $state === 0, but i
> don't quite understand your last answer.
> Thanks for helping by the way!!!!!
>
function whatever($state, $w = 0, $h = 0) {
if ($state == 0) {
// Close and full stop, don't care about
// the values of $w & $h
} else {
// Do something with $w & $h
}
}
JW
[Back to original message]
|