note 110770 deleted from function.define by aharvey
| From: | aharvey@php.net | Date: | Thu, 06 Dec 2012 09:52:08 +0000 |
| Subject: | note 110770 deleted from function.define by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192286@lists.php.net to get a copy of this message | ||
Note Submitter: ccheeboon at yahoo dot com
----
<?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);
define('YOU','aaron kee');
define('YOU','iskandar rosely');
//if first time a given constant name is define with case_insensitive=false
//subsequent redefine of the given constant will not affect.
define('ME','boxi');
define('ME','aaron kee',true);
define('ME','iskandar rosely');
define('SOMEONE','herni mohd',true);
define('SOMEONE','boxi',true);
echo "who is here?".SOMEONE;
//WILL OUTPUT: who is here?herni mohd
echo "<br>
";
define('SOMEONE','iskandar rosely');
echo YOU." and ".ME." is LOOKING for ".SOMEONE;
//WILL OUTPUT:aaron kee and boxi is LOOKING for iskandar rosely
//
?>