<?php $value='car'; $result=filter_var($value,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE); ?> In the above $result will equal NULL. Without the extra flag it ...
<?php $value='car'; $result=filter_var($value,FILTER_VALIDATE_BOOLEAN,FILTER_NULL_ON_FAILURE); ?> In the above $result will equal NULL. Without the extra flag it ...