I have a very simple PHP question about replacing in string.
For example, our string is this :
This is a test - spam text
and i need to convert this string to this :
This is a test
I mean i want to detect the place of -
charachter and delete everything after that.
How to do it ?