Search
 
SCRIPT & CODE EXAMPLE
 

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>
Comment

PREVIOUS NEXT
Code Example
Php :: PHP array_sum() Function 
Php :: get duplicate value from array php 
Php :: php reset mysql array 
Php :: laravel dropIndex 
Php :: Print exact sql statement executed 
Php :: year in php 
Php :: woocommerce my account url 
Php :: laravel pluralization text 
Php :: strupper php 
Php :: Internal error: xmlSchemaDocWalk, calling xmlSchemaValidateElem(). 
Php :: 419 page expired in laravel 
Php :: remove slashes from json php 
Php :: Split 10 email out of 50 email using coma separated via php 
Php :: placa de carro mercossul brasil 
Php :: Uncaught Error: Call to undefined function "themeblvd_add_builder_element()" 
Php :: create custom domain in localhost xampp 
Php :: php validate name 
Php :: laravel gigapay list employee 
Php :: php get end date of month 
Php :: InvalidArgumentException Unknown format "sentence" 
Php :: laravel modules slowdown 
Php :: laravel session put method 
Php :: Remove product (item) from WooCommerce checkout page using AJAX 
Php :: redaxo mform 7 
Php :: object to array php 
Php :: php return loading message 
Php :: composer create-project --prefer-dist laravel/laravel blog 
Php :: override belongto parent appmodel cakephp 
Php :: wordpress do shortcode 
Php :: laravel on delete set null 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =