如何去除特殊字符?
foreach ($login_and_logout_list['rval'] as $k => $v) {
$login_time[] = $v['login_time'];
$logout_time[] = $v['logout_time'];
$create_time[] = $v['create_time'];
$i++;
}
var_dump($login_time);
我在 var_dump 中得到了什么
array (size=3)
0 => string '{09:46},{09:48}'
1 => string '{05:04},{07:04},{08:40},{08:54}'
2 => string '{05:20}'
我在 var_dump 中想要的是
array (size=3)
0 => string '09:46 | 09:48'
1 => string '05:04 | 07:04 | 08:40 | 08:54'
2 => string '05:20'