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
How to call php function from javascript using ajax?
Tell me what is the difference between unset() and unlink()?
What is php string function?
What are the advantages of indexes?
What is the use of namespace in php?
What does $_env mean?
What is the difference between characters 23 and x23?
List some string function name in php?
Why php is used?
What is difference between session_unset and session_destroy?
What does a delimiter do in mysql?
Explain me what is the meaning of a persistent cookie?
What is the use of dual table in mysql?
How to get the http request in php?
can we swap two different string using php for example:-- before swapping:-- 1 string :-hello friend, 2 string :-my dear, after swapping that strings will be: 1.hello dear, 2.my friend.