keep in mind get_cfg_var() returns a string(1) '1' for the value: On
<?php
//in php.ini
//A = On
$A1 = get_cfg_var("A") === "On";
$A2 = get_cfg_var("A") === 1;
$A3 = get_cfg_var("A") === "1";
//$A1 is false
//$A2 is false
//$A3 is true
?>