Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checkbox sanitization
- *
- * @param bool int $input Whether the checkbox is checked.
- * @return int Whether the checkbox is checked.
- */
- function my_sanitize_checkbox( $input ) {
- if( 1 == $input || true == $input ){
- return 1;
- } else {
- return 0;
- }
- }
Add Comment
Please, Sign In to add comment