Answers for "if url includes something then in php"

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

Code answers related to "if url includes something then in php"

Browse Popular Code Answers by Language