Код: Выделить всё
Код: Выделить всё
array(3) {
[0]=>
string(5) " test"
[1]=>
string(6) " test2"
[2]=>
string(6) " test3"
}
Код: Выделить всё
function array_addstuff($a, $i) {
foreach ($a as &$e)
$e = $i . $e;
return $a;
}
Подробнее здесь: https://stackoverflow.com/questions/453 ... flat-array
Мобильная версия