3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $location_list = Array( 'Mersin' => 2323778, 'Adana' => 2343678, 'Ankara' => 2343732, 'Antalya' => 2343733, 'Bursa' => 2343843, 'Diyarbakır' => 2343932, 'Eskişehir' => 2343980, 'Gaziantep' => 2343999, 'Istanbul' => 2344116, 'Izmir' => 2344117, 'Kayseri' => 2344174, 'Konya' => 2344210, 'Turkiye' => 23424969, 'Worldwide' => 1 ); $imploded = "'".implode("','", $location_list)."'"; echo $imploded;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
'2323778','2343678','2343732','2343733','2343843','2343932','2343980','2343999','2344116','2344117','2344174','2344210','23424969','1'