I have php condition basically static if the page is "biz-los-angeles.php" show specific html. I would like to add another condition for example "retail-biz-los-angeles.php". What would be the easiest way to do this. Basically i just want to script to pick up "retail" text at the beginning of the url and return specific html. Below is the code to do this but would be too cumbersome to go over each city.
<?php
$currentpage = basename($_SERVER['SCRIPTNAME']);
if ($currentpage == 'retail-biz-los-angeles.php')
echo 'HTML ';
else if ($currentpage == 'biz-los-angeles.php')
echo 'HTML';
?>