Created
September 30, 2015 04:05
-
-
Save designbuildtest/cca695577d2f5319a8e9 to your computer and use it in GitHub Desktop.
Sanitize checkbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Sanitize Checkbox. | |
function dbt_sanitize_checkbox( $value ) { | |
if ( 1 == $value ) { | |
return true; | |
} | |
else { | |
return false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment