While validating a dynamic saving method in a controller I wanted to make sure a given case only accepts 0 and 1 as valid values. When I tried to manipulate the input form, submitting 'aaa' as a value the following still returns true. Why is that?
var_dump(in_array('aaa', [0, 1])); // true, I was expecting it to return false