Articles → PHP → Constants in PHP
Constants in PHP
Software requirement
Technical knowledge
What do you mean by constant?
Rules for making constant
Syntax
define(constant_name, constant_value,is_case_insensitive);
Example
<?php
define("PIE", "3.14", true);
echo pie
?>
<?php
define("PIE", "3.14");
echo pie
?>