- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.17, 5.5.0
- Parse error: syntax error, unexpected ')' in /in/OJ0vI on line 3
Process exited with code 255.
<?php
$adjuntos = array('idAdjunto' => 1, 'tamano' => 'x'));
$arrAdjuntos = array_walk($adjuntos, function(&$item){
$item['ADJUNTO_' . $item[0]] = $item[1];
});
var_dump($arrAdjuntos);
die;
var_dump(array_shift($adjuntos));
die;
$res = array_filter($adjuntos, function($item) {
return $item['idAdjunto'] == 1;
});
var_dump($res || false);