I got a way to display custom page titles using include fuction.
Header:
<title><?php echo $pageTitle ?></title>
Include:
<?php
$pageTitle = "Pets:";
include '../header.php';
?>
So as to handle titles easier I'd like the name to come from the predefined list:
<?php
define('ANIMAL', 'Dog');
?>
How do I add 'ANIMAL' to the $pageTitle = "Pets:"?
To answer your question:
But to be fair, I would do it with arrays, not with constants in this case.
Something like this: