mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
a15274f4d1
commit
95e3cdbbb4
1 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue