<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.control-structures.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.include-once.php',
    1 => 'include_once',
    2 => 'include_once',
  ),
  'up' => 
  array (
    0 => 'language.control-structures.php',
    1 => 'Control Structures',
  ),
  'prev' => 
  array (
    0 => 'function.require-once.php',
    1 => 'require_once',
  ),
  'next' => 
  array (
    0 => 'control-structures.goto.php',
    1 => 'goto',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'language/control-structures/include-once.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.include-once" class="sect1">
 <h2 class="title">include_once</h2>
 <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p>
 <p class="para">
  The <code class="literal">include_once</code> expression includes and evaluates
  the specified file during the execution of the script.
  This is a behavior similar to the <span class="function"><a href="function.include.php" class="function">include</a></span> expression,
  with the only difference being that if the code from a file has already
  been included, it will not be included again, and include_once returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.  As the name suggests,
  the file will be included just once.
 </p>
 <p class="para">
  <code class="literal">include_once</code> may be used in cases where
  the same file might be included and evaluated more than once during a
  particular execution of a script, so in this case it may help avoid
  problems such as function redefinitions, variable value reassignments, etc.
 </p>
 <p class="para">
  See the <span class="function"><a href="function.include.php" class="function">include</a></span> documentation for information about
  how this function works.
 </p>
</div><?php manual_footer($setup); ?>