How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / saurabh rastogi
define("CONSTANT", "Hello world.");
echo CONSTANT; // Outputs Hello world
| Is This Answer Correct ? | 46 Yes | 3 No |
Post New Answer View All Answers
How can I embed a java program in php file and what changes have to be done in php.ini file?
Tell me how can you pass a variable by reference?
What is Different between Joomla And Magento?
How do I repair phpmyadmin?
What is the name of scripting engine in php?
How to check a variable is an array or not in php?
Can you use both this () and super () in a constructor?
Why do we use javascript in php?
What is zend studio for?
What is php session start?
How to write php function in html onclick?
Why do we use php?
"mysql_fetch_row — Get a result row as an enumerated array",this sentence comes from the PHP offical manual.However ,i can not understand the words "enumerated array".I need some help.Thanks a lot to everyone that reply.
What is composer install?
What is the purpose of the following files having extensions: frm, myd, and myi? What these files contain?