You appear to be a bot. Output may be restricted
Description
Parse a numeric or string boolean value into a boolean.
Usage
$bool = Akismet_REST_API::parse_boolean( $value );
Parameters
- $value
- ( mixed ) required – The value to convert into a boolean.
Returns
bool The converted value.
Source
File name: akismet/class.akismet-rest-api.php
Lines:
1 to 18 of 18
public static function parse_boolean( $value ) { switch ( $value ) { case true: case 'true': case '1': case 1: return true; case false: case 'false': case '0': case 0: return false; default: return (bool) $value; } }