anantamu.com
PHP - Introduction
PHP - Setup
PHP - Syntax
PHP - String
PHP - constants
PHP - Operators
PHP - Superglobals
PHP Forms PHP - Forms
MySQL
MySQL - Create DB
MySQL - Update Data
MySQL - Delete Data


PHP constants


A constant is an identifier or name for a simple value. As the name suggests, that value cannot change at time of the execution of the script,It is used for at time of configurations.

Syntax: define(name, value);



<?php  
define(firstConstant, "Welcome to Constant Program");
echo firstConstant;
?>
                    

Result: Welcome to Constant Program


School