src/Kisma/Core/Utility/Sql.php
public static function scalar( $sql, $columnNumber = 0, $parameters = null, $connection = null, $fetchMode = \PDO::FETCH_ASSOC )
    {
        if ( false === ( $_reader = self::query( $sql, $parameters, $connection, $fetchMode ) ) )
        {
            return null;
        }

        return $_reader->fetchColumn( $columnNumber );
    }
public static function scalar( $sql, $columnNumber = 0, $parameters = null, $connection = null, $fetchMode = \PDO::FETCH_ASSOC )
    {
        if ( false === ( $_reader = self::query( $sql, $parameters, $connection, $fetchMode ) ) )
        {
            return null;
        }

        return $_reader->fetchColumn( $columnNumber );
    }
public static function scalar ( $ sql , $ columnNumber = 0 , $ parameters = null , $ connection = null , $ fetchMode = \ PDO :: FETCH_ASSOC ) { if ( false === ( $ _reader = self :: query ( $ sql , $ parameters , $ connection , $ fetchMode ) ) ) { return null ; } return $ _reader -> fetchColumn ( $ columnNumber ) ; }
Returns the first column of the first row or null

@param string $sql
@param int    $columnNumber
@param array  $parameters
@param \PDO   $connection

@param int    $fetchMode

@return mixed
Returns the first column of the first row or null