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
Require_once(), require(), include(). What is difference between them?
How to assigning a new character in a string?
How can you get the size of an image in PHP?
How to increase the maximum execution time of a script in php?
What is the ioncube php loader?
Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?
Explain the installation of PHP on UNIX systems?
Is it possible to submit a form with a dedicated button?
What is the difference between implode() and explode() in php?
Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
What is session_register()?
Explain the changes in php versions?
what is CURL?
Give the case where we can use get and we can use post methods?
How we load all classes that placed in different directory in one php file , means how to do auto load classes.