-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathinclude-once.xml
More file actions
46 lines (44 loc) · 1.73 KB
/
include-once.xml
File metadata and controls
46 lines (44 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 89d80c92a1154a2903fff371f0d056bf2ac8ba27 Maintainer: takagi Status: ready -->
<sect1 xml:id="function.include-once" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>include_once</title>
<?phpdoc print-version-for="include_once"?>
<para>
<literal>include_once</literal> 式は、スクリプトの実行時に指定
したファイルを読み込み評価します。この動作は
<function>include</function> 式と似ていますが、ファイルからのコー
ドが既に読み込まれている場合は、再度読み込まれずに include_once は
&true; を返すという点のみが異なります。その名が示す通り、ファイルは一度しか読み込まれません。
</para>
<para>
<literal>include_once</literal> は、スクリプトの実行時に同じファイ
ルが複数回読み込まれ、評価される可能性がある場合に、関数の再定義や
変数値の再代入といった問題を回避するために一回だけ読み込ませるため
に使用します。
</para>
<para>
この関数の動作についての情報は
<function>include</function> のドキュメントを参照ください。
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->