How to Define a Constant in PHP? Is $ symbol necessary?

Answer Posted / dhir

Constant means a unchangeable value and in php we are
written in "".

"constant";

And don't need to $ sign.

Is This Answer Correct ?    16 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is not null in php?

530


Is array a key php?

519


In php, objects are they passed by value or by reference?

524


What is alias in php?

554


What is phpsessid?

519






Why and where do we use htaccess?

530


What are the advantages of indexes?

508


Explain some of the php string functions?

529


What is echo and print in php?

503


How the web server interprets php and interacts with the client?

508


How many escape sequences are recognized in double-quoted strings in php?

535


What are php strings?

536


Tell us what does $_cookie means?

571


What is difference between ksort() and usort() functions.

526


How to get no. of rows using MYSQL function?

566