3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toto = array( array('toto' => 'alpha', 'aliou' => 'mari' ), array( 'toto' =>'amadou', 'aliou' => 'dje' ) ); function implode_array_values($key,$input) { return implode(', ', array_map(function($entry) use ($key) { return $entry[$key]; }, $input)); } var_dump(implode_array_values('toto',$toto)); echo array_map("count", $toto);
based on RQq3n
Output for 5.6.38 - 7.3.0rc3
string(13) "alpha, amadou" Notice: Array to string conversion in /in/uXbqg on line 21 Array