vrana           Tue Nov 29 08:23:21 2005 EDT

  Modified files:              
    /phpdoc/en/language functions.xml 
  Log:
  Function names (bug #35454)
  
http://cvs.php.net/diff.php/phpdoc/en/language/functions.xml?r1=1.59&r2=1.60&ty=u
Index: phpdoc/en/language/functions.xml
diff -u phpdoc/en/language/functions.xml:1.59 
phpdoc/en/language/functions.xml:1.60
--- phpdoc/en/language/functions.xml:1.59       Mon Jun  6 11:26:20 2005
+++ phpdoc/en/language/functions.xml    Tue Nov 29 08:23:20 2005
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.59 $ -->
+<!-- $Revision: 1.60 $ -->
  <chapter id="language.functions">
   <title>Functions</title>
 
@@ -31,6 +31,13 @@
     functions and <link linkend="keyword.class">class</link>
     definitions.
    </simpara>
+   <para>
+    Function names follow the same rules as other labels in PHP. A
+    valid function name starts with a letter or underscore, followed
+    by any number of letters, numbers, or underscores. As a regular
+    expression, it would be expressed thus:
+    <literal>[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*</literal>.
+   </para>
    <simpara>
     In PHP 3, functions must be defined before they are referenced. No
     such requirement exists since PHP 4. <emphasis>Except</emphasis> when

Reply via email to