How to Define a Constant in PHP? Is $ symbol necessary?
Answer Posted / mahesh
A Dollar($) Symbol is not necessary for displaying a
constant6 variable,
ex:
define("PAGE_SIZE","100");
echo PAGE_SIZE;
or
<?=PAGE_SIZE?>
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
Tell us how to create an array of a group of items inside an html form?
What does the expression exception::__tostring means?
How to remove blank spaces from the string?
Do you know what's the difference between __sleep and __wakeup?
Which of the data type is compound datatype supported by PHP?
What are the php variables?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.
What is stripslashes php?
What happens if an expected input field was not submitted?
Tell me which programming language does php resemble to?
I am writing an application in php that outputs a printable version of driving directions. It contains some long sentences, and I am a neat freak, and would like to make sure that no line exceeds 50 characters. How do I accomplish that with php?
When a conditional statement is ended with an endif?
What is inheritance in php?
How does firefox manage cookies?
How can I embed a java program in php file and what changes have to be done in php.ini file?