Filter FILTER_VALIDATE_BOOLEAN December 27, 2011 Pramod T P Leave a comment Return TRUE for “true”, “1”, “on” and “yes”, FALSE for “0”,”false”, “off”, “no”, and “”, NULL otherwise Example ====== <?php echo filter_var(“Yes”, FILTER_VALIDATE_BOOLEAN); ?> Output ===== 1