foreach add_time text as item if strripos item добавления val explode

1
2
3
4
5
6
foreach ($add_time[0]['#text'] as $item) {
if (strripos($item, 'добавления')) {
$val = explode(':', trim($item));
$info['date'] = '<b>' . $val[0] . '</b>: ' . $val[1];
}
}