in_array(): Argument #2 ($haystack) must be of type array, null given
there's 3 checkboxs when i create the record i may select or not, if i did't select it gives me this error also i'm doing if condition to be if not null so it shouldn't work but idk it gives this error
in_array(): Argument #2 ($haystack) must be of type array, null given
Returns the value encoded in json in appropriate PHP type. Values true, false and null are returned as true, false and null respectively. null is returned if the json cannot be decoded or if the encoded data is deeper than the nesting limit.
@MichalOravec i gotta an idea its working but idk if its the best approach, making this column in the db default [0] so its always not null also its not one of the checkboxs value