After much search (and finding endless posts about multidims, but no single dims) I thought I'd ask this question.
I have an array
$arr = array('foo' => 'bar');
and am looking for an output of
$str = 'foo bar';
This MUST be a one liner, no recursive loops etc etc etc, I am thinking that its going to have to be a lambda of some sort or another. This array will NEVER have more than a single key and a single value though.
I think its going to end up looking something like
$arr = array('foo' => 'bar');
echo 'Authorization: ' . array_walk($arr, function ($v, $k) { echo "$k $v"; });
which unfortunately ends up as foo barAuthorization: 1
no idea where the 1 comes from =P