ConverTable

XML to PHP array

ConverTable reads the repeating element of an XML document as rows, turns attributes and child elements into columns and picks the row element itself unless you name one. 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
.xml
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