Skip to content

Instantly share code, notes, and snippets.

View beneditomarques's full-sized avatar

Benedito Marques beneditomarques

View GitHub Profile
@beneditomarques
beneditomarques / format-mdtable2sql.php
Created June 2, 2021 02:15 — forked from inhere/format-mdtable2sql.php
Convert table create SQL to markdown table, Convert markdown table to table create SQL
<?php
function format_mdtable2sql(string $mdStr): string
{
$lines = array_values(
array_filter(
explode("\n", trim($mdStr))
)
);