Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (1)
Windows (1)
XHTML (173)
Other Resources:
define() - Defining Constants
How do you define a constant in PHP?
✍: FYIcenter
You can define a constant by using the define() function. Once a constant is defined, it can never be changed or undefined. For example:
<?php
define("CONSTANT", "Hello world.");
echo CONSTANT; // outputs "Hello world."
echo Constant; // outputs "Constant" and issues a
notice.
?>
Only scalar data (boolean, integer, float and string) can be contained in constants.
2007-02-27, 6378👍, 0💬
Popular Posts:
How do we get the current culture of the environment in windows and ASP.NET? “CultureInfo.CurrentCul. ..
What will be printed as the result of the operation below: main() { int x=10, y=15; x = x++; y = ++y...
If we have multiple AFTER Triggers on table how can we define the sequence of the triggers ? If a ta...
Do events have return type ? No, events do not have return type.
How you will enable front-end validation based on the xml in validation.xml? The <html:javascr...