Home
Articles
Interview Questions
.Net
.Net Design Pattern
.Net Windows Service
ADO.NET
Android
Architecture
ASP.NET Ajax
ASP.NET Core
ASP.NET Gridview
ASP.NET MVC
ASP.NET Web API
Automation Anywhere
AWS
AWS SDK and C#
AWS SDK and Node.js
Azure DevOps
Blockchain
Bootstrap
C#
CSS
Django
Docker
Environment
Excel
Excel Formula
Firebase
Flutter and dart
GIT
HTML
HTML 5
IIS
Java
JavaScript
JMeter
JQuery
JSON
Light Switch 2011
Linux
Machine Learning
Matplotlib
Microsoft Bot Framework
Microsoft Azure
MongoDB
MSWord
Node.js
NumPy
Pandas
Photoshop
PHP
PHP Codeigniter
PostGreSQL
Powerpoint
PowerShell
Project Management
Python
React.js
Seaborn
Selenium
Silverlight
SkLearn
Software Testing
Sonarqube
Spacy
SQL Server
Togaf
UiPath
VBA For Excel
VBA For Outlook
WCF
WPF
XML
XSD
Articles
→
PHP
→
Include Statement In Php
Include Statement In Php
In this article, we will discuss the "include" statement in PHP.
Purpose
The "Include" statement is used to include the file in another file. Mainly, the "include" statement is used to include the header and footer in every file.
Scenario
In this example, we have a PHP file "home.php".
Click to Enlarge
We require to include a header on the home page.
Code
First, we will create a new file "header.html" and add the following code: -
Click to Enlarge
Now, add the "include" statement in the "home.php".
Click to Enlarge
Output
Click to Enlarge
Posted By -
Karan Gupta
Posted On -
Thursday, July 30, 2020
Query/Feedback
Your Email Id
*
*
Subject
*
Query/Feedback
Characters remaining 250
*
*