Can i parse any of these strings in array with explode()
?
The array look like this
$array = [
'North AmericaWed 20:00',
'North AmericaWed 20:00',
'New ZealandTue 14:00',
'IndonesiaThu 08:00'
];
I want to get country name without days attached to it.
This is the php
code I thought of:
foreach($array as $string){
$parse = explode('any days' , $string);
$result = $parse[0];
}
and the result is :
North America
New Zealand
Indonesia
Thanks for the help everyone!