For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > May 2004 > cvs: phpdoc /en/language constants.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/language constants.xml
Mehdi Achour

2004-05-21, 2:30 am

didou Fri May 21 01:23:08 2004 EDT

Modified files:
/phpdoc/en/language constants.xml
Log:
let's pratice what the manual preach

http://cvs.php.net/diff.php/phpdoc/...36&r2=1.37&ty=u
Index: phpdoc/en/language/constants.xml
diff -u phpdoc/en/language/constants.xml:1.36 phpdoc/en/language/constants.xml:1.37
--- phpdoc/en/language/constants.xml:1.36 Fri May 21 00:55:23 2004
+++ phpdoc/en/language/constants.xml Fri May 21 01:23:07 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.36 $ -->
+<!-- $Revision: 1.37 $ -->
<chapter id="language.constants">
<title>Constants</title>

@@ -26,17 +26,17 @@
<?php

// Valid constant names
-define("foo", "something");
-define("foo2", "something else");
-define("foo_bar", "something more")
+define("FOO", "something");
+define("FOO2", "something else");
+define("FOO_BAR", "something more")

// Invalid constant names
-define("2foo", "something");
+define("2FOO", "something");

// This is valid, but should be avoided:
// PHP may one day provide a magical constant
// that will break your script
-define("__foo__", "something");
+define("__FOO__", "something");

?>
]]>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com