Request Custom Snippet

Previously Ordered Snippets

PHP snippet to parse a text and remove all non alphanumeric characters from it.
Price $5Order Now

I want a function to find number of occurrences of a word in a given text and then give their positions as comma separated list.
Price $5Order Now

I want a function to validate a given and tell if it safe URL slug i.e. it should check that it does not have any special characters, spaces or any non-alphanumeric characters except hyphens
Price $5Order Now