Esempio n. 1
0
<?php

include "../src/helpers.php";
$s = "";
$result = StringToBool($s);
var_dump($result);
Esempio n. 2
0
/**
 * (macro) IfAppVar
 * If condition to check for an app stack variable.
 *
 * @param name              The name of the variable
 * @param is                Check against
 */
function IfAppVar($name, $is = null)
{
    // get var
    $d = StringToBool(AppVar($name, false));
    // check
    return $d && $d == $is;
}