Is it possible to search for a word by its position on a line?
Lets say I have the following:
$comment = 'Hello world the sentence';
Is there a function that will return a word I specify like if I wanted word 2, it would return 'world' or if i wanted word 4, it would return 'sentence'?
Thanks