Answers for "php if url equals"

PHP
3

php if url contains

if(strpos($_SERVER['REQUEST_URI'], "string")) {
  ...
}
Posted by: Guest on November-18-2020
0

if url has certain code then php

if (strpos($_SERVER['REQUEST_URI'], "url word") !== false){
// code
}
Posted by: Guest on January-31-2021

Browse Popular Code Answers by Language