- var_dump: documentation ( source)
- is_numeric: documentation ( source)
<?php
function test($id)
{
if ($id (is_numeric($id) || $id === 'pass')) {
return true;
}
return false;
}
// this error makes the bug a lot more obvious:
//var_dump(test('1'));
var_dump(test(null));