let's pratice what the manual preach

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@159223 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Mehdi Achour 2004-05-21 05:23:07 +00:00
parent a15274f4d1
commit 95e3cdbbb4

View file

@ -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");
?>
]]>