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!
Use strpos() to find the position. Use substr() to extract the information surrounding that position. Reconstruct the string using concatenation to substitute the now extracted text for the replacement.