Is it possible to have php explode work on an exact word? For example, I wish to split the string:
London Luton to Paris
However, php explode will find the first occurrence of 'to' which is in 'Luton'. This string is also possible:
Paris to London Luton
Which will correctly explode as the 'to' appears first.
Ideally, I wish for the explode to be case insensitive which I believe explode currently is. I figure however that RegEx is probably a better way to go here.