Returns true for '1', 'on', 'yes' and 'true', false otherwise.

<?php
$flags 
= array();
$filter FILTER_VALIDATE_BOOLEAN FILTER_NULL_ON_FAILURE;
include 
'presentations/slides/input-filter/render-form.php';
include 
'presentations/slides/input-filter/check-data.php';
?>
Output
data: