Previous Page
locale()

Solar_Filter_SanitizeBool
sanitizeBool()

Next Class
Solar_Filter_SanitizeFloat

sanitizeBool()

public bool sanitizeBool ( mixed $value )

Forces the value to a boolean.

Parameters

  • (mixed) $value: The value to sanitize.

Returns

  • (bool) The sanitized value.

Description

Forces the value to a boolean.

Note that this recognizes $this->_true and $this->_false values.