I was to eager to place resolved on my last thread, and I feel that no one was going to look at a more advanced issue that I discovered in my earlier problem.
I am trying to create a link from a string of characters like:
See the Cat, Dog, Monkey and Sea Horse.
the animals are actual pages, but the pages are lower case and have no spaces
This Code works for just turning the word into a link to it's page, but - again - I need to make them lower case and without spaces like Sea Horse.
ereg_replace("(Cat|Dog|Monkey|Sea Horse)","<a href="\\1.php>\\1</a>", $string);
Help would be great!🙂