Filters/validates a variable as a boolean.
Description
Alternative to filter_var( $value, FILTER_VALIDATE_BOOLEAN )
.
Parameters
$value
mixedrequired- Boolean value to validate.
Source
array_push( $encodings, $encoding );
mb_internal_encoding( 'ISO-8859-1' );
}
if ( $reset && $encodings ) {
$encoding = array_pop( $encodings );
mb_internal_encoding( $encoding );
}
}
/**
Changelog
Version | Description |
---|---|
4.0.0 | Introduced. |
wp_validate_boolean() tests: