php - Convert an array of arrays into a string? -


array(   array('foo' => '11'),   array('bar' => '22'), ); 

given array above, without using loop, possible output following string?

'11 22' 

here's one-liner:

$subject = array(     array('foo' => '11'),     array('bar' => '22'),     array('bar' => '33'), );  echo implode(" ", array_map("implode", $subject )); 

11 22 33


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -