static public function isSql($query)
    {
        if (is_string($query) && !is_numeric($query)) {
            if (preg_match('/^\s*(select|insert|update|delete|show|create|alter|rename|drop|grant|revoke|exec|TRUNCATE|set|declare)\s+/i', $query)) {
                return true;
            }
        }
        return false;
    }
static public function isSql($query)
    {
        if (is_string($query) && !is_numeric($query)) {
            if (preg_match('/^\s*(select|insert|update|delete|show|create|alter|rename|drop|grant|revoke|exec|TRUNCATE|set|declare)\s+/i', $query)) {
                return true;
            }
        }
        return false;
    }
static public function isSql ( $ query ) { if ( is_string ( $ query ) && ! is_numeric ( $ query ) ) { if ( preg_match ( '/^\s*(select|insert|update|delete|show|create|alter|rename|drop|grant|revoke|exec|TRUNCATE|set|declare)\s+/i' , $ query ) ) { return true ; } } return false ; }
is directly sql
@param  mixed $query
@return boolean
is directly sql