How can i get the days string without loosing the delimiter. Example strings with google places :
Monday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm,Tuesday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm,Wednesday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm,Thursday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm,<strong>Friday: 11:30 am – 2:30 pm, 5:00 – 9:00 pm</strong>,Saturday: 11:00 am – 2:30 pm, 5:00 – 9:00 pm,Sunday: 11:00 am – 2:30 pm, 5:00 – 8:30 pm
OR (Edit)
Monday: 11:30 am – 9:00 pm,Tuesday: 11:30 am – 9:00 pm,Wednesday: 11:30 am – 9:00 pm,Thursday: 11:30 am – 9:00 pm,<strong>Friday: 11:30 am – 9:00 pm</strong>,Saturday: 11:00 am – 9:00 pm,Sunday: 11:00 am – 8:30 pm
and output must be like : `
[0] => Monday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm
[1] => Tuesday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm
[2] => Wednesday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm
[3] => Thursday: 11:30 am – 2:30 pm, 5:30 – 9:00 pm
[4] => <strong>Friday: 11:30 am – 2:30 pm, 5:00 – 9:00 pm</strong>
[5] => Saturday: 11:00 am – 2:30 pm, 5:00 – 9:00 pm
[6] => Sunday: 11:00 am – 2:30 pm, 5:00 – 8:30 pm
`
Thanks in advance
Aucun commentaire:
Enregistrer un commentaire