- A constant is a identifier or name for a simple value.The value of php constant do not change during the execution of script.
- Constant are case sensitve.
- It became easy to understand after reading this example shown below:
| <?define( “SITE”, “fullyhelp.com”); define(“AUTHOR”, “libra”);echo SITE echo AUTHOR echo SITE. “by” . AUTHOR ?> |
- If the php canstant tutorial is not case- sensitive , then this statement couldn’d work.see the example:
<?echo Site;?> |
- If you want to make it case- insesitive, then only you may set a third parameter to true
<? define( “SITE”, “fullyhelp.com”);echo SITE echo Site?> |
No comments:
Post a Comment