pardipbhatti8791
2/2/2016 - 5:52 PM

how to define constant in php ?

how to define constant in php ?

<?php
// Defining constants using define method

define("name", "value");  // It takes 2 parameters first one is constant variable 
                          //name and second is value that we assigning to a contstant
?>