3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "TMS klantnaam (openingsuren),Straat,Huisnummer,Huisnummer toevoeging,Postcode,Plaats,Land,Maandag,Dinsdag,Woensdag,Donderdag,Vrijdag,Zaterdag,Zondag,Opmerking Ziggo Almere Traverse,Traverse,5,,1315 TJ,Almere,Nederland,12:00-18:00,9:30-18:00,9:30-18:00,9:30-18:00,9:30-18:00,9:30-17:00,12:00-17:00, Ziggo Amsterdam Buikslotermeerplein,Buikslotermeerplein,76,,1025 EW,Amsterdam,Nederland,12:30-17:30,9:00-17:30,9:00-17:30,9:00-21:00,9:00-17:30,9:00-17:30,12:00-17:00, Ziggo Amsterdam Ferdinand Bolstraat,Ferdinand Bolstraat,79,,1072 LC,Amsterdam,Nederland,9:30-18:00,9:30-18:00,9:30-18:00,9:30-20:00,9:30-18:00,9:30-17:00,Gesloten, Ziggo Amsterdam Kabelweg,Kabelweg,51,,1014 BA,Amsterdam,Nederland,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,Gesloten,Gesloten, Ziggo Apeldoorn Hoofdstraat,Hoofdstraat,69,,7311 JW,Apeldoorn,Nederland,11:00-17:30,9:00-17:30,9:00-17:30,9:00-21:00,9:00-17:30,9:30-17:00,12:00-17:00,Eerste en laatste zondag van de maand Ziggo Arnhem Koningstraat,Koningstraat,73,,6811 DJ,Arnhem,Nederland,12:00-18:30,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:00,Gesloten, Ziggo Den Haag Venestraat,Venestraat,41,,2511 AR,Den Haag,Nederland,13:00-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:00,12:00-17:00, Ziggo Dordrecht Achterom,Achterom,1,,3311 KA,Dordrecht,Nederland,12:30-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:00,12:00-17:00,Laatste zondag van de maand Ziggo Eindhoven Rechtestraat,Rechtestraat,56,,5611 GR,Eindhoven,Nederland,13:00-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:00,12:00-17:00,Eerste zondag van de maand Ziggo Groningen Winschoterdiep,Winschoterdiep,60,,9723 AB,Groningen,Nederland,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,Gesloten,Gesloten, Ziggo Heerhugowaard J. Duikerweg,J. Duikerweg,1,,1703 DH,Heerhugowaard,Nederland,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,Gesloten,Gesloten, Ziggo Leeuwarden Ruiterskwartier,Ruiterskwartier,127,,8911 BS,Leeuwarden,Nederland,13:00-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:30,13:00-17:00,Laatste zondag van de maand Ziggo Nijmegen Broerstraat,Broerstraat,76,,6511 KR,Nijmegen,Nederland,12:30-17:30,9:00-17:30,9:00-17:30,9:00-21:00,9:00-17:30,9:00-17:30,12:00-17:00,Eerste zondag van de maand Ziggo Rotterdam Lijnbaan,Lijnbaan,117,,3012 EN,Rotterdam,Nederland,12:00-18:00,9:30-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,12:00-17:00, Ziggo Rotterdam Zuidplein,Zuidplein Hoog,441,,3083 BE,Rotterdam,Nederland,12:30-17:30,9:00-17:30,9:00-17:30,9:00-21:00,9:00-17:30,9:00-17:00,12:00-17:00, Ziggo Utrecht Atoomweg,Atoomweg,100,,3542 AB,Utrecht,Nederland,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,9:00-17:30,Gesloten,Gesloten, Ziggo Utrecht Lange Viestraat,Lange Viestraat,2,a,3511 BK,Utrecht,Nederland,13:00-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:00,12:00-17:00,Eerste zondag van de maand Ziggo Zwolle Diezerstraat,Diezerstraat,40,,8011 RG,Zwolle,Nederland,12:30-18:00,9:30-18:00,9:30-18:00,9:30-21:00,9:30-18:00,9:30-17:00,12:00-17:00,"; $shops = explode(PHP_EOL,$a); $final = []; foreach($shops as $shop) { $final[] = explode(',',$shop); } var_dump(json_encode($final));
based on LLfQv
Output for 5.5.0 - 7.3.0rc3
string(3654) "[["TMS klantnaam (openingsuren)","Straat","Huisnummer","Huisnummer toevoeging","Postcode","Plaats","Land","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag","Opmerking"],["Ziggo Almere Traverse","Traverse","5","","1315 TJ","Almere","Nederland","12:00-18:00","9:30-18:00","9:30-18:00","9:30-18:00","9:30-18:00","9:30-17:00","12:00-17:00",""],["Ziggo Amsterdam Buikslotermeerplein","Buikslotermeerplein","76","","1025 EW","Amsterdam","Nederland","12:30-17:30","9:00-17:30","9:00-17:30","9:00-21:00","9:00-17:30","9:00-17:30","12:00-17:00",""],["Ziggo Amsterdam Ferdinand Bolstraat","Ferdinand Bolstraat","79","","1072 LC","Amsterdam","Nederland","9:30-18:00","9:30-18:00","9:30-18:00","9:30-20:00","9:30-18:00","9:30-17:00","Gesloten",""],["Ziggo Amsterdam Kabelweg","Kabelweg","51","","1014 BA","Amsterdam","Nederland","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","Gesloten","Gesloten",""],["Ziggo Apeldoorn Hoofdstraat","Hoofdstraat","69","","7311 JW","Apeldoorn","Nederland","11:00-17:30","9:00-17:30","9:00-17:30","9:00-21:00","9:00-17:30","9:30-17:00","12:00-17:00","Eerste en laatste zondag van de maand"],["Ziggo Arnhem Koningstraat","Koningstraat","73","","6811 DJ","Arnhem","Nederland","12:00-18:30","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:00","Gesloten",""],["Ziggo Den Haag Venestraat","Venestraat","41","","2511 AR","Den Haag","Nederland","13:00-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:00","12:00-17:00",""],["Ziggo Dordrecht Achterom","Achterom","1","","3311 KA","Dordrecht","Nederland","12:30-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:00","12:00-17:00","Laatste zondag van de maand"],["Ziggo Eindhoven Rechtestraat","Rechtestraat","56","","5611 GR","Eindhoven","Nederland","13:00-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:00","12:00-17:00","Eerste zondag van de maand"],["Ziggo Groningen Winschoterdiep","Winschoterdiep","60","","9723 AB","Groningen","Nederland","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","Gesloten","Gesloten",""],["Ziggo Heerhugowaard J. Duikerweg","J. Duikerweg","1","","1703 DH","Heerhugowaard","Nederland","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","Gesloten","Gesloten",""],["Ziggo Leeuwarden Ruiterskwartier","Ruiterskwartier","127","","8911 BS","Leeuwarden","Nederland","13:00-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:30","13:00-17:00","Laatste zondag van de maand"],["Ziggo Nijmegen Broerstraat","Broerstraat","76","","6511 KR","Nijmegen","Nederland","12:30-17:30","9:00-17:30","9:00-17:30","9:00-21:00","9:00-17:30","9:00-17:30","12:00-17:00","Eerste zondag van de maand"],["Ziggo Rotterdam Lijnbaan","Lijnbaan","117","","3012 EN","Rotterdam","Nederland","12:00-18:00","9:30-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","12:00-17:00",""],["Ziggo Rotterdam Zuidplein","Zuidplein Hoog","441","","3083 BE","Rotterdam","Nederland","12:30-17:30","9:00-17:30","9:00-17:30","9:00-21:00","9:00-17:30","9:00-17:00","12:00-17:00",""],["Ziggo Utrecht Atoomweg","Atoomweg","100","","3542 AB","Utrecht","Nederland","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","9:00-17:30","Gesloten","Gesloten",""],["Ziggo Utrecht Lange Viestraat","Lange Viestraat","2","a","3511 BK","Utrecht","Nederland","13:00-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:00","12:00-17:00","Eerste zondag van de maand"],["Ziggo Zwolle Diezerstraat","Diezerstraat","40","","8011 RG","Zwolle","Nederland","12:30-18:00","9:30-18:00","9:30-18:00","9:30-21:00","9:30-18:00","9:30-17:00","12:00-17:00",""]]"