implode array keys in php code example Example: implode array keys in php $cols = implode(', ',array_keys($values));