Tell me an easy and efficient function to return all the positions (occurrence) of a word into a string.

I want to create a function that returns all the position of occurrences of a word into a string. Please tell an easy and efficient code.
Give it a try, then post your code. Start with finding occurrences of a letter, then proceed from there.
Topic archived. No new replies allowed.