Sure thing, identical operator does its job regarding the empty-string-input (indeed, empty string is treated as 0).
But... now the value that's sent from radio-button (from form) is being rejected when 'visible' is set to 0 (zero):glare:
I don't get it:
first) empty && different from 0 -> 'visible' as 0 gets through
now) empty && not identical to 0 -> 'visible' can't get through anymore, it is put into $errors array
EDIT: Here's what I've found out:
'not identical' operates like this: if $a is not equal to $b, or they are not of the same type
And I've also found out that option selected from radio-button is sent as a string.
So now, what's the most compatible and efficient solution? My neophyte (:o) intuiton comes up with only one, that is to cast 'visible' into integer.
Please, don't take my scrawlings as granted (not that you do😃), rather someone confirm my assumptions (on how 'not identical' *should work and that radio-button option is really sent as string).
I doubt my doubts.