note 110772 deleted from function.define by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Dec 2012 14:07:30 +0000 |
| Subject: | note 110772 deleted from function.define by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192293@lists.php.net to get a copy of this message | ||
Note Submitter: ccheeboon at yahoo dot com
----
<?php
require_once('./test_static.php');
//if first time a given [define name] is define with case_insensitive=true
//then the subsequent redifine of the [define name] with case_insensitive=false will take effect
define('YOU','boxi',true);//apply for [YOU,you,...] case insensitive
define('YOU','aaron kee');//WILL EFFECT FOR [YOU]
define('you','patrick');//will NOT effect [you]
define('YOU','iskandar rosely');//will NOT effect [YOU]
echo "who is SMALL you?".you;
echo "<br>";
echo "who is BIG you?".YOU;
//who is SMALL you?boxi
//who is BIG you?aaron kee
echo "<br>";
define('ME','boxi',true);//apply for [me,ME,...] case insensitive
define('me','patrick');//will NOT effect [me]
define('ME','aaron kee');//WILL EFFECT FOR [ME]
define('ME','iskandar rosely');//will NOT effect [ME]
echo "who is SMALL me?".me;
echo "<br>";
echo "who is BIG me?".ME;
//who is SMALL me?boxi
//who is BIG me?aaron kee
?>