ConverTable

MySQL console to PHP array

ConverTable reads the result printed by the mysql or mariadb client, both the boxed table and the vertical layout of \G, and can turn the text NULL into the text you choose. PHP array assignments are a quick way to embed fixed data in a program, and ConverTable writes an array of associative arrays or of indexed arrays in short [] or long array() syntax, assigned to a variable you name, with an optional <?php tag, numbers and booleans as PHP values and empty cells as null or empty strings. The file never leaves your browser.

Input
paste
Output
.php · array assigned to $data

Source

No data loaded yet

Editor

The table will appear here

No data

Output

Output format

Preview

The preview appears once data is loaded

© 2026 gosulabs.ai · All conversions run locally in your browser.

v: 0.9.0-ec4f7aad