Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #php #set #title
ADD COMMENT
Topic
Name
9+8 =