php implode as key value of object

Solutions on MaxInterview for php implode as key value of object by the best coders in the world

showing results for - "php implode as key value of object"
Valentín
03 Sep 2016
1$output = implode(', ', array_map(
2    function ($v, $k) { return sprintf("%s='%s'", $k, $v); },
3    $input,
4    array_keys($input)
5));