Converter
Paste INI below, press Convert, and copy the PHP array output.
Convert INI to PHP array free in your browser. Paste your INI on the left, press Convert, and copy clean PHP array on the right. No sign-up, no uploads.
Paste INI below, press Convert, and copy the PHP array output.
The parser scans the INI line by line, tracking the current [section] header and turning every key = value line into a row with section, key and value columns. Comments and blank lines are skipped, quoted values are unwrapped, and scalars are auto-typed, giving a tidy three-column table that maps directly onto PHP array.
The snippet assigns $data, so rename the variable or wrap it in a return statement if you are building a config file. It is also a quick way to seed Laravel or WordPress fixtures: convert, paste into a seeder, and the nested array() syntax works on every supported PHP version.