I have a string returning a URL and need to figure out how to use if and regex to do something whenever the returned URL contains a question mark.
So when $url is http://somedomain.com/?p=34325&blahblahblah
IF the $url contains "?p=" (and discarding everything else) then exit, otherwise do something
Any help?
Many thanks