Boolean

Navigation:  Development > Function Reference > Helpers > Validation >

Boolean

Previous pageReturn to chapter overviewNext page

Return true for  true, false, 1, 0 other then return false;

 

App::Utility()->Boolean(Value)

 

Parameter

Description

Value

Value to check

 

 

See bellow example:
 

$String = false;  // Return true
$return = App::Helper('Validation')->Boolean($String);
pr($return);