Is there a PHP function for imploding an associative array without losing the keys?

Implode with serialize($array) Explode with unserialize($array).

Implode with serialize($array); Explode with unserialize($array).

Output doesn't match what I'd prefer, but otherwise it's perfect and I ended up using this. – Codemonkey Sep 29 '10 at 14:47.

Depends on what you'd be doing with the array. Edit: Never mind, just spotted your clarification. Read on.

Found a function in the php. Net comments for implode: function implode_with_key($glue = null, $pieces, $hifen = ',') { $return = null; foreach ($pieces as $tk => $tv) $return . = $glue.

$tk. $hifen. $tv; return substr($return,1); } Credit to memandeemail at gmail dot com.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions