Note, string 'true' (case-insensitive) will be converted to true,
string 'false' (case-insensitive) will be converted to false.
If a string represents a non-zero number, it will be treated as true.
public static ensureBoolean ( $value ) : boolean | ||
return | boolean |