This is driving me crazy and definitely fits into some sort of stupid question category, but for some reason my minds gone completely blank. I KNOW there is a simple way to do this, a default PHP function even, but I can't find it.
If anyone can help, there's some easy points for you.
I have an array like this:
array(
'oauth_consumer_key' => "mykey",
'oauth_signature' => "mysignature",
'oauth_signature_method' => "HMAC-SHA1",
'oauth_timestamp' => 1452103343
);
I want to turn it into this:
echo someFunction($data);
// returns
// 'oauth_consumer_key="mykey", oauth_signature="mysignature", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1452103343"'
Can anyone point me in the right direction?
array_map()to loop through keys and values at once, and make an array with"key => value"elements, which you then canimplode()into a comma separated list; If you get stuck, post the attempt here.build_me_a_yellow_pink_striped_house()function, but it does give you ahammer(),screwdriver(), ...