How to write this in PHP?

  • Thread starter Thread starter l.marie
  • Start date Start date
L

l.marie

Guest
So, I am trying to say that if a url follows this pattern: "http://www.fandango.com/yesman_113214/movieoverview" then the x should appear. If the url does not follow that pattern (e.g.: "http://www.fandango.com/nowplayingmovietrailers/nothingliketheholidays_1_165981"), then nothing should happen.

I know it's and if/then statement, but not sure how to write it.
I copied and pasted the code in the first answer (I fixed the urls) and got this message:
syntax error, unexpected T_IF
 
Back
Top