php - Best way to write an or is equal statement -


Hello $ for the most influential people.

I have a quick silly question; What is the best way to write this:

  if ($ curpageurl == "www.mysite.com/this" || "www.mysite.com/this/") {echo ' This is this page '; }  

And if it is not, then I need to call

  while (isset ($ somevariable) {echo '$ somevariable';}  

And if that variable is not set and we are not on this page, then

  else  we are not on this page and set the variable ';}  

I know that I am not far from the correct answer, and it actually works, but only if I remove it / this is my first statement What is a better way to write

if ($ curpageurl) == "www.mysite.com/this" || $ curpageurl == "www.mysite.com/this/")

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -