home

Php Constants Tutorial


Constant are opposite of variables. They have a fixed value. In PHP constants can be defiend by using a word define. It's considered good practice to use upper case names for constants names

define('CONSTANT_NAME', 'CONSTANT_VALUE');

for example
<?php

define(’ME’, 'Shahid Khan');

?>


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web design london by dotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com