I want to make in_array return TRUE in these cases:
in_array(0, [0]);
in_array(0, ['0']);
in_array('0', [0]);
in_array('0', ['0']);
But at the same time, return FALSE in cases such as this:
in_array(0, ['A']);
in_array('0', ['A']);
in_array('A', ['0']);
in_array('A', [0]);
in_array(1, [true]);
What's the simplest solution to this?