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

Which php framework is fastest?

504


Does php 5 support exceptions?

673


What are form input html tags?

553


How to open a file in php?

613


Is learning php easy?

524






What is the main difference between require() and require_once()?

511


What is the difference between single quoted string and double quoted string?

516


What is the difference between for and foreach loop in php?

619


What are major variables in research?

531


What does the array operator '===' means?

542


Write the statements that are used to connect php with mysql

507


What is the difference between public, protected and private?

473


How do I find out the number of parameters passed into function9?

538


How does html form submit work?

513


What are the 5 types of data?

555