include , require and require_once , include_once in php
<h1>Welcome to My blog !</h1>
<? php include 'header.php';
?>
<
?>
<h1>Welcome to My blog !</h1>
<? php require 'header.php';
?>
<
?>
include_once
It can be used include a PHP file another one, it can used to add files once. If it is found that the file has already been included, calling script is going to ignore further inclusions.
Syntax
include_once
<
?>
<
include_once and require_once same different with include and require.
0 komentar:
Post a Comment