Class convert
A utility class for performing conversions.
Methods summary
public static
boolean
|
#
to_boolean( string $value )
Not all checkboxes are created equal. Some use 'on/off', others use 'true/false', and yet others can use '0/1'. This function takes these synonyms and converts down to a single, numeric 0 or 1 value. |