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
When a conditional statement is ended with an endif?
What is faster?
How does csrf attack work?
In php, how to redirect from one page to another page?
How can you propagate a session id?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
What percentage of websites use php?
What is the difference between substr() and strstr()?
What are majic methords in php?
What is the purpose of php?
What are the functions to be used to get the image's properties (size, width and height)?
How check field is empty or not in php?
What is a namespace in php?
How do I expire a php session after 30 minutes?
What is the meaning of a persistent cookie?