Constants, like the names of variables, are case-sensitivebut unlike variables : define « Math « PHP






Constants, like the names of variables, are case-sensitivebut unlike variables

 
They do not start with a dollar sign. 
You can change this behavior by passing true as a third parameter to define( ), which makes the constant case-insensitive:

<?
    define("SecondsPerDay", 86400, true);
    print SecondsPerDay;
    print SECONDSperDAY;
?>
  
  








Related examples in the same category

1.Constants and switch statement
2.Define a constant as an array or object