I need to replace "-" from a string . Ie
Just need a "-" between two words. ie
standard format is : Hello-world-php
If I got a string like this 'Hello--world----php'
I just need to rewrite that in to 'Hello-world-php' format .
Hope you understand this ..