PHP implode_with_key(); Implode array with key and value

Reply to comment

This is exactly what I was looking for! Thanks for sharing.

I changed the inglue from , to =>. Makes more sense to me.