Quantcast
Channel: Fastest way to implode an associative array with keys - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by Justin for Fastest way to implode an associative array with keys

$
0
0

This is the most basic version I can think of:

public function implode_key($glue = "", $pieces = array())
{
    $keys = array_keys($pieces);
    return implode($glue, $keys);
}

Viewing all articles
Browse latest Browse all 14

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>