<?php $array = array('foo' => 'bar', 'baz', 'bat' => 2); $arry = implode(',', array_keys($array)); echo $arry;
Standard input is empty
foo,0,bat
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!