2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:17:58 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<chapter xml:id="language.constants" xmlns="http://docbook.org/ns/docbook">
|
2000-03-20 00:06:54 +00:00
|
|
|
<title>Constants</title>
|
1999-06-20 02:25:34 +00:00
|
|
|
|
2000-03-20 00:06:54 +00:00
|
|
|
<simpara>
|
2003-03-02 20:52:22 +00:00
|
|
|
A constant is an identifier (name) for a simple value. As the name
|
2002-03-12 00:57:47 +00:00
|
|
|
suggests, that value cannot change during the execution of the
|
2021-06-21 08:41:19 +00:00
|
|
|
script (except for <link linkend="language.constants.magic">
|
2003-03-02 20:52:22 +00:00
|
|
|
magic constants</link>, which aren't actually constants).
|
2020-11-09 13:27:06 +00:00
|
|
|
Constants are case-sensitive. By convention, constant
|
2003-01-18 06:42:27 +00:00
|
|
|
identifiers are always uppercase.
|
2000-03-20 00:06:54 +00:00
|
|
|
</simpara>
|
2020-11-09 13:27:06 +00:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
Prior to PHP 8.0.0, constants defined using the <function>define</function>
|
|
|
|
function may be case-insensitive.
|
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2001-06-22 22:06:55 +00:00
|
|
|
<para>
|
|
|
|
The name of a constant follows the same rules as any label in PHP. A
|
2001-07-08 16:13:04 +00:00
|
|
|
valid constant name starts with a letter or underscore, followed
|
2001-06-22 22:06:55 +00:00
|
|
|
by any number of letters, numbers, or underscores. As a regular
|
2003-03-02 20:52:22 +00:00
|
|
|
expression, it would be expressed thusly:
|
2019-04-17 15:21:07 +00:00
|
|
|
<code>^[a-zA-Z_\x80-\xff][a-zA-Z0-9_\x80-\xff]*$</code>
|
2004-05-21 04:55:23 +00:00
|
|
|
</para>
|
2018-11-05 14:56:40 +00:00
|
|
|
<para>
|
|
|
|
It is possible to <function>define</function> constants with reserved or even
|
2020-11-09 13:27:06 +00:00
|
|
|
invalid names, whose value can only be retrieved with the
|
|
|
|
<function>constant</function> function. However, doing so is not recommended.
|
2018-11-05 14:56:40 +00:00
|
|
|
</para>
|
2006-08-11 16:55:35 +00:00
|
|
|
&tip.userlandnaming;
|
2004-05-21 04:55:23 +00:00
|
|
|
<para>
|
2020-11-09 13:27:06 +00:00
|
|
|
<!-- TODO Move into syntax section? -->
|
2004-05-21 04:55:23 +00:00
|
|
|
<example>
|
|
|
|
<title>Valid and invalid constant names</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// Valid constant names
|
2004-05-21 05:23:07 +00:00
|
|
|
define("FOO", "something");
|
|
|
|
define("FOO2", "something else");
|
2005-11-18 16:25:23 +00:00
|
|
|
define("FOO_BAR", "something more");
|
2004-05-21 04:55:23 +00:00
|
|
|
|
|
|
|
// Invalid constant names
|
2004-05-21 05:23:07 +00:00
|
|
|
define("2FOO", "something");
|
2004-05-21 04:55:23 +00:00
|
|
|
|
|
|
|
// This is valid, but should be avoided:
|
|
|
|
// PHP may one day provide a magical constant
|
|
|
|
// that will break your script
|
2004-05-21 05:23:07 +00:00
|
|
|
define("__FOO__", "something");
|
2001-06-22 22:06:55 +00:00
|
|
|
|
2004-05-21 04:55:23 +00:00
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2001-06-22 22:06:55 +00:00
|
|
|
</para>
|
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
For our purposes here, a letter is a-z, A-Z, and the ASCII
|
2019-04-17 15:17:19 +00:00
|
|
|
characters from 128 through 255 (0x80-0xff).
|
2001-06-22 22:06:55 +00:00
|
|
|
</simpara>
|
|
|
|
</note>
|
2002-03-12 00:57:47 +00:00
|
|
|
|
2001-06-19 20:36:56 +00:00
|
|
|
<simpara>
|
2020-11-09 13:27:06 +00:00
|
|
|
Like &link.superglobals;, the scope of a constant is global.
|
|
|
|
Constants can be accessed from anywhere in a script without regard to scope.
|
2003-02-22 06:51:10 +00:00
|
|
|
For more information on scope, read the manual section on
|
|
|
|
<link linkend="language.variables.scope">variable scope</link>.
|
2001-06-19 20:36:56 +00:00
|
|
|
</simpara>
|
2002-03-12 00:57:47 +00:00
|
|
|
|
2020-11-09 13:27:06 +00:00
|
|
|
<note>
|
|
|
|
<simpara>
|
2020-12-09 11:50:07 +00:00
|
|
|
As of PHP 7.1.0, class constant may declare a visibility of protected
|
2020-11-09 13:27:06 +00:00
|
|
|
or private, making them only available in the hierarchical scope of the
|
2021-04-20 10:54:54 +00:00
|
|
|
class in which it is defined.
|
2020-11-09 13:27:06 +00:00
|
|
|
</simpara>
|
|
|
|
</note>
|
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<sect1 xml:id="language.constants.syntax">
|
2001-06-19 20:36:56 +00:00
|
|
|
<title>Syntax</title>
|
|
|
|
<simpara>
|
2020-10-31 19:13:58 +00:00
|
|
|
Constants can be defined using the <literal>const</literal> keyword,
|
|
|
|
or by using the <function>define</function>-function.
|
|
|
|
While <function>define</function> allows a constant to be
|
2016-07-05 13:11:07 +00:00
|
|
|
defined to an arbitrary expression, the <literal>const</literal> keyword has
|
|
|
|
restrictions as outlined in the next paragraph.
|
|
|
|
Once a constant is defined, it can never be
|
2008-11-30 22:13:27 +00:00
|
|
|
changed or undefined.
|
2001-06-19 20:36:56 +00:00
|
|
|
</simpara>
|
|
|
|
<simpara>
|
2016-07-05 13:11:07 +00:00
|
|
|
When using the <literal>const</literal> keyword,
|
2020-11-02 15:39:04 +00:00
|
|
|
only scalar (<type>bool</type>, <type>int</type>,
|
2020-10-31 19:13:58 +00:00
|
|
|
<type>float</type> and <type>string</type>) expressions and constant
|
|
|
|
<type>array</type>s containing only scalar expressions are accepted.
|
|
|
|
It is possible to define constants as a <type>resource</type>,
|
|
|
|
but it should be avoided, as it can cause unexpected results.
|
2001-06-19 20:36:56 +00:00
|
|
|
</simpara>
|
|
|
|
<simpara>
|
2020-10-31 19:13:58 +00:00
|
|
|
The value of a constant is accessed simply by specifying its name.
|
|
|
|
Unlike variables, a constant is <emphasis>not</emphasis> prepended
|
|
|
|
with a <literal>$</literal>.
|
|
|
|
It is also possible to use the <function>constant</function> function to
|
2020-12-15 01:40:52 +00:00
|
|
|
read a constant's value if the constant's name is obtained dynamically.
|
2001-06-19 20:36:56 +00:00
|
|
|
Use <function>get_defined_constants</function> to get a list of
|
|
|
|
all defined constants.
|
|
|
|
</simpara>
|
2020-11-09 13:27:06 +00:00
|
|
|
|
2001-06-19 20:36:56 +00:00
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
Constants and (global) variables are in a different namespace.
|
2001-07-07 18:42:46 +00:00
|
|
|
This implies that for example &true; and
|
2001-06-19 20:36:56 +00:00
|
|
|
<varname>$TRUE</varname> are generally different.
|
|
|
|
</simpara>
|
|
|
|
</note>
|
2020-11-09 13:27:06 +00:00
|
|
|
|
2001-06-19 20:36:56 +00:00
|
|
|
<simpara>
|
2020-11-09 13:27:06 +00:00
|
|
|
If an undefined constant is used an <classname>Error</classname> is thrown.
|
|
|
|
Prior to PHP 8.0.0, undefined constants would be interpreted as a bare
|
|
|
|
word <type>string</type>, i.e. (CONSTANT vs "CONSTANT").
|
2018-11-05 14:09:08 +00:00
|
|
|
This fallback is deprecated as of PHP 7.2.0, and an error of level
|
2020-11-09 13:27:06 +00:00
|
|
|
<constant>E_WARNING</constant> is issued when it happens.
|
|
|
|
Prior to PHP 7.2.0, an error of level
|
|
|
|
<link linkend="ref.errorfunc">E_NOTICE</link> has been issued instead.
|
2018-11-05 14:09:08 +00:00
|
|
|
See also the manual entry on why
|
2003-06-10 04:30:35 +00:00
|
|
|
<link linkend="language.types.array.foo-bar">$foo[bar]</link> is
|
2020-11-09 13:27:06 +00:00
|
|
|
wrong (unless <literal>bar</literal> is a constant).
|
|
|
|
This does not apply to <link
|
2015-09-06 17:02:36 +00:00
|
|
|
linkend="language.namespaces.rules">(fully) qualified constants</link>,
|
2020-11-09 13:27:06 +00:00
|
|
|
which will always raise a <classname>Error</classname> if undefined.
|
2001-06-19 20:36:56 +00:00
|
|
|
</simpara>
|
2020-11-09 13:27:06 +00:00
|
|
|
|
|
|
|
<note>
|
|
|
|
<simpara>
|
|
|
|
To check if a constant is set, use the <function>defined</function> function.
|
|
|
|
</simpara>
|
|
|
|
</note>
|
|
|
|
|
2001-06-19 20:36:56 +00:00
|
|
|
<para>
|
2002-03-12 00:57:47 +00:00
|
|
|
These are the differences between constants and variables:
|
|
|
|
<itemizedlist>
|
2000-03-20 00:06:54 +00:00
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2002-03-12 00:57:47 +00:00
|
|
|
Constants do not have a dollar sign (<literal>$</literal>)
|
|
|
|
before them;
|
2000-03-20 00:06:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2002-03-12 00:57:47 +00:00
|
|
|
Constants may be defined and accessed anywhere without regard
|
|
|
|
to variable scoping rules;
|
2001-06-19 20:36:56 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2002-03-12 00:57:47 +00:00
|
|
|
Constants may not be redefined or undefined once they have been
|
|
|
|
set; and
|
2000-03-20 00:06:54 +00:00
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
2020-10-31 19:13:58 +00:00
|
|
|
Constants may only evaluate to scalar values or arrays.
|
|
|
|
</simpara>
|
2000-03-20 00:06:54 +00:00
|
|
|
</listitem>
|
2002-03-12 00:57:47 +00:00
|
|
|
</itemizedlist>
|
|
|
|
</para>
|
1999-06-20 02:25:34 +00:00
|
|
|
|
|
|
|
<para>
|
|
|
|
<example>
|
2002-03-12 00:57:47 +00:00
|
|
|
<title>Defining Constants</title>
|
2001-11-09 15:48:16 +00:00
|
|
|
<programlisting role="php">
|
2001-11-23 21:51:24 +00:00
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2002-03-12 00:57:47 +00:00
|
|
|
define("CONSTANT", "Hello world.");
|
|
|
|
echo CONSTANT; // outputs "Hello world."
|
2020-11-09 13:27:06 +00:00
|
|
|
echo Constant; // Emits an Error: Undefined constant "Constant"
|
|
|
|
// Prior to PHP 8.0.0, outputs "Constant" and issues a warning.
|
2001-11-23 21:51:24 +00:00
|
|
|
?>
|
|
|
|
]]>
|
1999-06-20 02:25:34 +00:00
|
|
|
</programlisting>
|
2001-06-19 20:36:56 +00:00
|
|
|
</example>
|
2008-11-30 22:13:27 +00:00
|
|
|
</para>
|
2002-03-12 00:57:47 +00:00
|
|
|
|
2008-11-30 22:13:27 +00:00
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title>Defining Constants using the <literal>const</literal> keyword</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
2020-10-31 19:13:58 +00:00
|
|
|
// Simple scalar value
|
2008-11-30 22:13:27 +00:00
|
|
|
const CONSTANT = 'Hello World';
|
|
|
|
|
|
|
|
echo CONSTANT;
|
2014-06-01 22:06:02 +00:00
|
|
|
|
2020-10-31 19:13:58 +00:00
|
|
|
// Scalar expression
|
2014-06-01 22:06:02 +00:00
|
|
|
const ANOTHER_CONST = CONSTANT.'; Goodbye World';
|
|
|
|
echo ANOTHER_CONST;
|
2015-05-20 14:57:54 +00:00
|
|
|
|
|
|
|
const ANIMALS = array('dog', 'cat', 'bird');
|
|
|
|
echo ANIMALS[1]; // outputs "cat"
|
|
|
|
|
2020-10-31 19:13:58 +00:00
|
|
|
// Constant arrays
|
2015-05-20 14:57:54 +00:00
|
|
|
define('ANIMALS', array(
|
|
|
|
'dog',
|
|
|
|
'cat',
|
|
|
|
'bird'
|
|
|
|
));
|
|
|
|
echo ANIMALS[1]; // outputs "cat"
|
2008-11-30 22:13:27 +00:00
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2001-06-19 20:36:56 +00:00
|
|
|
</para>
|
2005-08-03 18:18:42 +00:00
|
|
|
|
2010-03-24 15:33:08 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
As opposed to defining constants using <function>define</function>,
|
|
|
|
constants defined using the <literal>const</literal> keyword must be
|
|
|
|
declared at the top-level scope because they are defined at compile-time.
|
2014-05-16 15:13:31 +00:00
|
|
|
This means that they cannot be declared inside functions, loops,
|
|
|
|
<literal>if</literal> statements or <literal>try</literal>/
|
|
|
|
<literal>catch</literal> blocks.
|
2010-03-24 15:33:08 +00:00
|
|
|
</para>
|
|
|
|
</note>
|
|
|
|
|
2020-11-09 13:27:06 +00:00
|
|
|
<sect2 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2017-09-12 11:27:09 +00:00
|
|
|
<para>
|
2020-11-09 13:27:06 +00:00
|
|
|
<simplelist>
|
|
|
|
<member><link linkend="language.oop5.constants">Class Constants</link></member>
|
|
|
|
</simplelist>
|
2017-09-12 11:27:09 +00:00
|
|
|
</para>
|
2020-11-09 13:27:06 +00:00
|
|
|
</sect2>
|
2001-06-19 20:36:56 +00:00
|
|
|
</sect1>
|
2002-03-12 00:57:47 +00:00
|
|
|
|
2007-06-20 22:25:43 +00:00
|
|
|
<sect1 xml:id="language.constants.predefined">
|
2021-02-12 13:22:24 +00:00
|
|
|
<title>Predefined constants</title>
|
2002-03-12 00:57:47 +00:00
|
|
|
|
|
|
|
<simpara>
|
2004-05-24 20:13:57 +00:00
|
|
|
PHP provides a large number of <link
|
|
|
|
linkend="reserved.constants">predefined constants</link> to any script
|
2002-03-12 00:57:47 +00:00
|
|
|
which it runs. Many of these constants, however, are created by
|
|
|
|
various extensions, and will only be present when those extensions
|
|
|
|
are available, either via dynamic loading or because they have
|
|
|
|
been compiled in.
|
|
|
|
</simpara>
|
2021-02-12 13:22:24 +00:00
|
|
|
</sect1>
|
|
|
|
|
|
|
|
<sect1 xml:id="language.constants.magic">
|
|
|
|
<title>Magic constants</title>
|
2003-01-18 06:42:27 +00:00
|
|
|
<para>
|
2017-01-29 09:14:49 +00:00
|
|
|
There are nine magical constants that change depending on
|
2003-03-02 20:52:22 +00:00
|
|
|
where they are used. For example, the value of
|
2003-01-18 06:42:27 +00:00
|
|
|
<constant>__LINE__</constant> depends on the line that it's
|
2017-01-07 09:30:22 +00:00
|
|
|
used on in your script. All these "magical" constants are resolved
|
2018-02-16 15:19:15 +00:00
|
|
|
at compile time, unlike regular constants, which are resolved at runtime.
|
2017-01-07 09:30:22 +00:00
|
|
|
These special constants are case-insensitive and are as follows:
|
2003-01-18 06:42:27 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<table>
|
2020-11-09 13:27:06 +00:00
|
|
|
<title>PHP's magic constants</title>
|
2003-01-18 06:42:27 +00:00
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
2020-11-09 13:27:06 +00:00
|
|
|
<entry>&Name;</entry>
|
|
|
|
<entry>&Description;</entry>
|
2003-01-18 06:42:27 +00:00
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.line">
|
2003-01-18 06:42:27 +00:00
|
|
|
<entry><constant>__LINE__</constant></entry>
|
|
|
|
<entry>
|
|
|
|
The current line number of the file.
|
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.file">
|
2003-01-18 06:42:27 +00:00
|
|
|
<entry><constant>__FILE__</constant></entry>
|
|
|
|
<entry>
|
2014-08-05 11:43:50 +00:00
|
|
|
The full path and filename of the file with symlinks resolved. If used inside an include,
|
2004-08-14 05:59:20 +00:00
|
|
|
the name of the included file is returned.
|
2003-01-18 06:42:27 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.dir">
|
2008-02-12 04:39:11 +00:00
|
|
|
<entry><constant>__DIR__</constant></entry>
|
|
|
|
<entry>
|
|
|
|
The directory of the file. If used inside an include,
|
|
|
|
the directory of the included file is returned. This is equivalent
|
|
|
|
to <literal>dirname(__FILE__)</literal>. This directory name
|
|
|
|
does not have a trailing slash unless it is the root directory.
|
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.function">
|
2003-01-18 06:42:27 +00:00
|
|
|
<entry><constant>__FUNCTION__</constant></entry>
|
|
|
|
<entry>
|
2018-11-14 14:25:43 +00:00
|
|
|
The function name, or <literal>{closure}</literal> for anonymous functions.
|
2003-01-18 06:42:27 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.class">
|
2003-01-18 06:42:27 +00:00
|
|
|
<entry><constant>__CLASS__</constant></entry>
|
|
|
|
<entry>
|
2014-08-04 07:48:40 +00:00
|
|
|
The class name. The class name includes the namespace
|
2011-09-15 15:24:50 +00:00
|
|
|
it was declared in (e.g. <literal>Foo\Bar</literal>).
|
2020-10-31 19:13:58 +00:00
|
|
|
When used
|
2011-10-17 22:07:53 +00:00
|
|
|
in a trait method, __CLASS__ is the name of the class the trait
|
|
|
|
is used in.
|
2003-01-18 06:42:27 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.trait">
|
2011-10-17 22:07:53 +00:00
|
|
|
<entry><constant>__TRAIT__</constant></entry>
|
|
|
|
<entry>
|
2014-08-04 07:48:40 +00:00
|
|
|
The trait name. The trait name includes the namespace
|
2011-10-17 22:07:53 +00:00
|
|
|
it was declared in (e.g. <literal>Foo\Bar</literal>).
|
|
|
|
</entry>
|
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.method">
|
2003-06-01 16:56:56 +00:00
|
|
|
<entry><constant>__METHOD__</constant></entry>
|
2003-06-01 17:17:43 +00:00
|
|
|
<entry>
|
2014-08-04 07:48:40 +00:00
|
|
|
The class method name.
|
2003-06-01 17:17:43 +00:00
|
|
|
</entry>
|
2003-06-01 16:56:56 +00:00
|
|
|
</row>
|
2012-02-28 19:56:00 +00:00
|
|
|
<row xml:id="constant.namespace">
|
2007-12-28 18:24:47 +00:00
|
|
|
<entry><constant>__NAMESPACE__</constant></entry>
|
|
|
|
<entry>
|
2014-08-04 07:48:40 +00:00
|
|
|
The name of the current namespace.
|
2007-12-28 18:24:47 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2017-01-07 09:30:22 +00:00
|
|
|
<row xml:id="constant.coloncolonclass">
|
2020-11-09 13:27:06 +00:00
|
|
|
<entry><constant><replaceable>ClassName</replaceable>::class</constant></entry>
|
2017-01-07 09:30:22 +00:00
|
|
|
<entry>
|
2020-11-09 13:27:06 +00:00
|
|
|
The fully qualified class name.
|
2017-01-07 09:30:22 +00:00
|
|
|
</entry>
|
|
|
|
</row>
|
2003-01-18 06:42:27 +00:00
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</table>
|
|
|
|
</para>
|
2014-08-04 07:48:40 +00:00
|
|
|
|
2020-10-31 19:13:58 +00:00
|
|
|
<sect2 role="seealso">
|
|
|
|
&reftitle.seealso;
|
2014-08-04 07:48:40 +00:00
|
|
|
<para>
|
2020-10-31 19:13:58 +00:00
|
|
|
<simplelist>
|
2020-11-09 13:27:06 +00:00
|
|
|
<member><link linkend="language.oop5.basic.class.class">::class</link></member>
|
2020-10-31 19:13:58 +00:00
|
|
|
<member><function>get_class</function></member>
|
|
|
|
<member><function>get_object_vars</function></member>
|
|
|
|
<member><function>file_exists</function></member>
|
|
|
|
<member><function>function_exists</function></member>
|
|
|
|
</simplelist>
|
2014-08-04 07:48:40 +00:00
|
|
|
</para>
|
|
|
|
</sect2>
|
2020-10-31 19:13:58 +00:00
|
|
|
|
2002-03-12 00:57:47 +00:00
|
|
|
</sect1>
|
2001-06-19 20:36:56 +00:00
|
|
|
</chapter>
|
1999-06-20 02:25:34 +00:00
|
|
|
|
2001-09-21 22:47:49 +00:00
|
|
|
<!-- 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
|
2001-12-12 20:47:43 +00:00
|
|
|
indent-tabs-mode:nil
|
2001-09-21 22:47:49 +00:00
|
|
|
sgml-parent-document:nil
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2001-09-21 22:47:49 +00:00
|
|
|
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
|
|
|
|
-->
|