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
In PHP, fgets() is used to read a file one line at a time. State Whether True or False?
What are the special characters you need to escape in single-quoted stings?
What is use of mysqli_query in php?
How to get the total number of values in an array?
What is symfony php?
Is null or empty c#?
List some array functions in php?
What are getters and setters php?
How many columns can be added in a table in mysql?
What are the main error types in php and how do they differ?
How can we change the maximum size of the files to be uploaded?
How can we submit a form without using submit buttons?
Why do we use inheritance in php?
What are the different ways to login to a remote server?
How do I stop php artisan serve in windows?