str_replace problem
- by user330840
I am trying to change title data into URL. I need to get rid off all text starting from "deadline" from the following dynamic data which I get from $title:
New York deadline May 14th, 2010 (urgent)
New Hampshire deadline May 19th, 2010
New Jersey deadline
I expect the result should be like this
new-york
new-hampshire
new-jersey
Here is the code…