Replace() can be replaced by preg_replace().
Replace() can be replaced by preg_replace() and match() would be preg_match() which is very powerful Check the manual to see how it would work with your code, they are not that different, and you can use your call back function too.
1 preg_replace_callback() would be the suitable replacement in this case. – mario May 11 at 6:15 You are right mario, thank you for the addition – Ibu May 11 at 6:17.
It looks like you are parsing HTML with regex. In that case, PHP provides DOMDocument which is pretty good for doing DOM manipulation. You could use it ensure your string contains safe HTML.
A more domain specific solution is HTML Purifier.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.