- array_map: documentation ( source)
<?php
$shits = array();
foreach(Shit::getShits() as $shit) {
$shits[] = array(
'tird' => $shit->getTird(),
'ffff' => array_map(
function($val) {
// can't return key = value
},
$this->getPoopies()
)
);
}