I have searched and not been able to find anything for this question on this site, so please excuse me if it comes out as a duplicate.
I have the following url
and I want to write a php code in the navigation so that if the user is on any page with a “numeric id” at the end, it shows a link.
here is the code, I am not sure what i have to type in for ‘abc’ to make this work.
if(strstr($_SERVER['REQUEST_URI'], 'abc')) {
echo "<a href="#"class="playing">viewing</a>";
}
any help is greatly appreciated.
use regular expression to check it: