Quick one liner to flatten an array?

From: Jd D.
Sent on: Wednesday, February 20, 2013 4:50 PM

just looking for a simple solution that I can put direct in a curlopt field,
maybe a lambda or something?

$arr = array('foo' => 'bar',);

echo magic_function($arr); // foo bar

Anyone done this before and have a quick answer?

--
Jd Daniel || ERADO
Senior Applications Architect
7901 Delridge Way SW #36D, Seattle
C.   [masked]

Our Sponsors

  • TUNE

    Meeting space and food

  • PluralSight

    PluralSight subscriptions for developer training

  • Siteground

    Information coming Soon

  • O'Reilly

    Disc Code: PCBW is good for 40% off print and 50% off ebooks and videos

  • JetBrains PhpStorm

    Occasional free licenses to raffle off at meetups

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy