src/Psecio/Iniscan/Cast.php
public function castValue($value)
    {
        if ($value === 'Off' || $value === '' || $value === 0 || $value === '0' || $value === false) {
            $casted = 0;
        } elseif ($value === 'On' || $value === '1' || $value === 1) {
            $casted = 1;
        } else {
            $casted = $value;
        }

        $casted = $this->castPowers($casted);

        return $casted;
    }
public function castValue($value)
    {
        if ($value === 'Off' || $value === '' || $value === 0 || $value === '0' || $value === false) {
            $casted = 0;
        } elseif ($value === 'On' || $value === '1' || $value === 1) {
            $casted = 1;
        } else {
            $casted = $value;
        }

        $casted = $this->castPowers($casted);

        return $casted;
    }
public function castValue ( $ value ) { if ( $ value === 'Off' || $ value === '' || $ value === 0 || $ value === '0' || $ value === false ) { $ casted = 0 ; } elseif ( $ value === 'On' || $ value === '1' || $ value === 1 ) { $ casted = 1 ; } else { $ casted = $ value ; } $ casted = $ this -> castPowers ( $ casted ) ; return $ casted ; }
Cast the values from php.ini to a standard format

@param mixed $value php.ini setting value
@return mixed "Casted" result
Cast the values from php . ini to a standard format