Answers for "php function for title name"

PHP
2

How to use php to set title

//1. Simply add $title variable before require function
<?php

$title = "Your title goes here";
require("header.php");

?>
  
  
//2. Add following code into header.php

<title><?php echo $title; ?></title>
Posted by: Guest on August-07-2021

Browse Popular Code Answers by Language