Mecha CMS

Is::toggle()

Check for valid boolean value.

2.0.02.2.0Static

Is::toggle($x);

Example:

if (Is::toggle(true)) { … }