PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
you never specified it was a URL you needed to "fix" .. regular expressions are good for this.. explode() can work too, or rather, parsing the string for parts then processing the parts as needed is the real way to go.