mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix missing example tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@270560 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e0d1cb8cd8
commit
70484a1f8d
1 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<chapter xml:id="language.namespaces" xmlns="http://docbook.org/ns/docbook"
|
||||
version="1.1">
|
||||
<title>Namespaces</title>
|
||||
|
@ -43,7 +43,9 @@
|
|||
PHP Namespaces provide a way in which to group related classes,
|
||||
functions and constants. Here is an example of namespace syntax in PHP:
|
||||
</simpara>
|
||||
<programlisting role="php">
|
||||
<example>
|
||||
<title>Namespace syntax example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
namespace my\name; // see "Defining Namespaces" section
|
||||
|
@ -63,8 +65,9 @@ $d = namespace\MYCONST; // see "namespace operator and __NAMESPACE__
|
|||
$d = __NAMESPACE__ . '\MYCONST';
|
||||
echo constant($d); // see "Namespaces and dynamic language features" section
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<simpara>
|
||||
Namespaces are available in PHP as of PHP 5.3.0.
|
||||
</simpara>
|
||||
|
|
Loading…
Reference in a new issue