note 110772 added to function.define
| From: | ccheeboon at yahoo dot com | Date: | Thu, 06 Dec 2012 09:40:09 +0000 |
| Subject: | note 110772 added to function.define | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192285@lists.php.net to get a copy of this message | ||
<?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
?>
----
Server IP: 69.147.83.199
Probable Submitter: 72.52.91.2 (proxied: 175.143.111.79)
----
Manual Page -- http://php.net/manual/en/function.define.php
Edit -- https://master.php.net/note/edit/110772
Del: integrated -- https://master.php.net/note/delete/110772/integrated
Del: useless -- https://master.php.net/note/delete/110772/useless
Del: bad code -- https://master.php.net/note/delete/110772/bad+code
Del: spam -- https://master.php.net/note/delete/110772/spam
Del: non-english -- https://master.php.net/note/delete/110772/non-english
Del: in docs -- https://master.php.net/note/delete/110772/in+docs
Del: other reasons-- https://master.php.net/note/delete/110772
Reject -- https://master.php.net/note/reject/110772
Search -- https://master.php.net/manage/user-notes.php