The name of the constant is given by name;
the value is given by value.
The optional third parameter
case_insensitive is also available. If the
value TRUE is given, then the constant will be
defined case-insensitive. The default behaviour is
case-sensitive; i.e. CONSTANT and Constant represent different
values.
Example 1. Defining Constants
<?php define("CONSTANT", "Hello world."); echo CONSTANT; // outputs "Hello world." echo Constant; // outputs "Constant" and issues a notice.
define php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php define syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.