I have the following variables:
$pageTitle = "Products";
$pageSubTitle = "Product One";
I'm then echoing them in various places but how can I wrap the $pageSubTitle in an if statement so that it is NOT displayed is a Subtitle is not declared?
Here's an example of the echo:
<title>XYZ, Inc. - <?php echo $pageTitle ?> - <?php echo $pageSubTitle ?></title>
I'm sure this is an easy fix. For some reason, I have reached an impasse. 🙁
Ashley