Convert TSV to PHP Array Online
Form for TSV converting
This form allows you convert TSV to PHP Array, paste or upload your TSV file below:
Result of TSV conversion to PHP Array
Move to "Paste Code" for Save it
About TSV conversion to PHP Array
About TSV conversion to PHP Array
The Convert TSV to PHP array was created for online converting TSV into appropriate PHP type as Array. This can come in handy for testing or debugging your TSV, also for fast formatting and adding an array of PHP to your config or anywhere else.
How it Works?
Just paste your TSV to the textarea above and click to the button "Convert" and you will get PHP array in the next textarea.
Example of TSV conversion to PHP Array
Before:"LatD" "LatM" "LatS" "NS" "LonD" "LonM" "LonS" "EW" "City" "State" 41 5 59 "N" 80 39 0 "W" "Youngstown" OH 46 35 59 "N" 120 30 36 "W" "WTOOLS" WA 43 37 48 "N" 89 46 11 "W" "Wisconsin Dells" WIAfter:
array ( 0 => array ( 0 => 'LatD', 1 => 'LatM', 2 => 'LatS', 3 => 'NS', 4 => 'LonD', 5 => 'LonM', 6 => 'LonS', 7 => 'EW', 8 => 'City', 9 => 'State', ), 1 => array ( 0 => '41', 1 => '5', 2 => '59', 3 => 'N', 4 => '80', 5 => '39', 6 => '0', 7 => 'W', 8 => 'Youngstown', 9 => 'OH', ), 2 => array ( 0 => '46', 1 => '35', 2 => '59', 3 => 'N', 4 => '120', 5 => '30', 6 => '36', 7 => 'W', 8 => 'WTOOLS', 9 => 'WA', ), 3 => array ( 0 => '43', 1 => '37', 2 => '48', 3 => 'N', 4 => '89', 5 => '46', 6 => '11', 7 => 'W', 8 => 'Wisconsin Dells', 9 => 'WI', ), )Associative keys:
array ( 0 => array ( 'LatD' => '41', 'LatM' => '5', 'LatS' => '59', 'NS' => 'N', 'LonD' => '80', 'LonM' => '39', 'LonS' => '0', 'EW' => 'W', 'City' => 'Youngstown', 'State' => 'OH', ), 1 => array ( 'LatD' => '46', 'LatM' => '35', 'LatS' => '59', 'NS' => 'N', 'LonD' => '120', 'LonM' => '30', 'LonS' => '36', 'EW' => 'W', 'City' => 'WTOOLS', 'State' => 'WA', ), 2 => array ( 'LatD' => '43', 'LatM' => '37', 'LatS' => '48', 'NS' => 'N', 'LonD' => '89', 'LonM' => '46', 'LonS' => '11', 'EW' => 'W', 'City' => 'Wisconsin Dells', 'State' => 'WI', ), )After the conversion, you can apply the PHP array to your project or use it for some other purpose.
Donate
Did you like this tool? You can donate to us. This will help us improve our free web tools.
Paypal