我有这个数组(无法更改):
Array
(
[0] => AGUI vs CARI Hora 7:30 pm</span></p>PUERTO LA CRUZ</span></p>
[1] => MAGA vs LEON Hora 7:30 pm</span></p>CARACAS</span></p>
[2] => BRAV vs TIGR Hora 7:30 pm</span></p>MARACAY</span></p>
[3] => TIBU vs CARD Hora 7:30 pm</span></p>BARQUISIMETO</span></p>
)
我需要拆分以分别获取值,例如:
[0] => AGUI vs CARI Hora 7:30 pm</span></p>PUERTO LA CRUZ</span></p>
我需要分成:
AGUI vs CARI
7:30 pm (I not need the word "Hora")
PUERTO LA CRUZ
我试图</span></p>
用这个替换:
str_replace("</span></p>", "-", trim($the_string_var));
并清理更多的字符串,但它不起作用,任何人都可以给我一些关于这个算法的提示或想法吗?