public static function getCreateFunction($tbl): string
    {
        $sql = self::getInstance()->sql_query("SHOW CREATE FUNCTION `$tbl`");

        $q = $sql->fetch(PDO::FETCH_ASSOC);

        return strtr($q['Create Function'], ["\r" => '', "\n" => '', "\t" => '']);
    }
public static function getCreateFunction($tbl): string
    {
        $sql = self::getInstance()->sql_query("SHOW CREATE FUNCTION `$tbl`");

        $q = $sql->fetch(PDO::FETCH_ASSOC);

        return strtr($q['Create Function'], ["\r" => '', "\n" => '', "\t" => '']);
    }
public static function getCreateFunction ( $ tbl ) : string { $ sql = self :: getInstance ( ) -> sql_query ( "SHOW CREATE FUNCTION `$tbl`" ) ; $ q = $ sql -> fetch ( PDO :: FETCH_ASSOC ) ; return strtr ( $ q [ 'Create Function' ] , [ "\r" => '' , "\n" => '' , "\t" => '' ] ) ; }
Get create sql for function

@param string $tbl - table name
@return string with full query
Get create sql for function