fork(14) download
  1. <?php
  2. $a = array("item1"=>"object1", "item2"=>"object2","item-n"=>"object-n");
  3. $r=array();
  4. array_walk($a, create_function('$b, $c', 'global $r; $r[]="$c=$b";'));
  5. echo implode(', ', $r);
  6. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
item1=object1, item2=object2, item-n=object-n