Remove everything AFTER specific character
-
I am trying to use the Product URL as the unique identifier for my imports. My reason for this is that it is the only data in my feeds that will allow me to ignore duplicates during import.
My problem is, some of the URLs are structured like the following one.
http://www.snowys.com.au/polypro-active-thermal-top?c=Royal&s=LargeI need a php function to remove the ? and everything after it in the URL. The final URL should be http://www.snowys.com.au/polypro-active-thermal-top
Is anyone able to help with the structure of the php function?
The topic ‘Remove everything AFTER specific character’ is closed to new replies.