Defines a constant.
Constants are used to hold values that will not change during the execution of a script. This function creates a constant and assigns a value to it. Unlike variables, constants are not accessed using a dollar sign. It is not possible to define constant arrays. The optional parameter no_case can be used to make the name of the constant case insensitive. By default, constants are case sensitive.
<?php
define("MAX_MAILBOX_SIZE", 10000);
print "MAX_MAILBOX_SIZE: " . MAX_MAILBOX_SIZE . "<br>";
?> MAX_MAILBOX_SIZE: 10000Note that a dollar sign should not be used to access a constant.