1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-24 16:38:16 +02:00
Files
archived-doc-ja/language/predefined/variables/env.xml
T
Gina Peter Banyard 6bc8826d13 Use <refentry> tag with role attribute instead of custom XML tag
Done using the following commands:

find ./language/predefined/variables/ -type f -name "*.xml" -exec sed -i 's+<phpdoc:varentry xmlns:phpdoc="http://php.net/ns/phpdoc"+<refentry role="variable"+g' {} +
find ./language/predefined/variables/ -type f -name "*.xml" -exec sed -i 's+</phpdoc:varentry>+</refentry>+g' {} +

Applies commit a6d209f4ff71ccba3f1255902827f5df3e092ff9 from doc-en
2023-11-01 16:51:53 +00:00

98 lines
2.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: cdaea0421544885f02ff3d36bd203dc01b78299e Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->
<refentry role="variable" xml:id="reserved.variables.environment" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>$_ENV</refname>
<refpurpose>環境変数</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
環境変数として現在のスクリプトに渡された変数の連想配列です。
</para>
<simpara>
これらの変数は PHP パーサが実行されている環境から
PHP のグローバル名前空間に取り込まれます。
その多くは、PHP が実行されているシェルに由来するものであり、
システムが違えばシェルも違ってくるため、確定的なリストを
得ることは不可能です。定義されている環境変数のリストについては
使用しているシェルのドキュメントをご覧ください。
</simpara>
<simpara>
CGI 変数を含むその他の環境変数も、
PHP がサーバーモジュールとして実行されているか CGI プロセッサとして
実行されているかに関わらずここに含まれます。
</simpara>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example xml:id="variable.env.basic">
<title><varname>$_ENV</varname> の例</title>
<programlisting role="php">
<![CDATA[
<?php
echo 'My username is ' .$_ENV["USER"] . '!';
?>
]]>
</programlisting>
<simpara>
"bjori" がこのスクリプトを実行したとします。
</simpara>
&example.outputs.similar;
<screen>
<![CDATA[
My username is bjori!
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.is-superglobal;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>getenv</function></member>
<member><link linkend="book.filter">filter 拡張モジュール</link></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- 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
-->