Convert PHP Array to PList
Input data
This form allows you convert PHP array to PList, you only need to insert the array syntax [...]
or array(...)
, paste or upload your array below:
Result of converting a PHP array to PList
About PHP array conversion to PList
About this tool
The Convert PHP array to PList was created for online converting array of PHP into appropriate PList. This can come in handy for testing or debugging your arrays, also for fast formatting and adding PList file to your config or anywhere else.
How it Works?
Just paste your PHP array to the textarea above and click to the button "Convert" and you will get PList in the next textarea. PHP array should be without variables and functions, there should be a clean syntax like [...]
or array(...)
.
Example of conversion PHP array to PList
Before:[ 'first_section' => [ 'one' => '1', 'test' => 'sample', 'job' => 'DEVELOPER', ], 'second_section' => [ 'path' => '/var/test', 'URL' => 'https://wtools.io/', 'second_section' => [ 'one' => '1 associated', 'two' => '2 associated', 0 => '1 unassociated', 1 => '2 unassociated', ], ], 'third_section' => [ 'version' => ['7.0','7.1','7.2','7.3'], ], ]After:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>first_section</key> <dict> <key>one</key> <integer>1</integer> <key>test</key> <string>sample</string> <key>job</key> <string>DEVELOPER</string> </dict> <key>second_section</key> <dict> <key>path</key> <string>/var/test</string> <key>URL</key> <string>https://wtools.io/</string> <key>second_section</key> <dict> <key>one</key> <string>1 associated</string> <key>two</key> <string>2 associated</string> <key>0</key> <string>1 unassociated</string> <key>1</key> <string>2 unassociated</string> </dict> </dict> <key>third_section</key> <dict> <key>version</key> <array> <real>7.0</real> <real>7.1</real> <real>7.2</real> <real>7.3</real> </array> </dict> </dict> </plist>After the conversion, you can apply the PList to your project or use it for some other purpose.
Did you like this tool? You can donate to us. This will help us improve our free web tools.
Paypal