Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / vaneet badhan

define(my,60);

echo my;

output will be 60.

define(my,vaneet);

echo my;

output will be vaneet

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I convert ereg expressions to preg in php?

1033


What are the advantages and disadvantages of cascade style sheets?

1196


What are the rules for naming a php variable?

1124


What is meant by PEAR in PHP?

1026


What are the data types in php?

1087


What is artisan in php?

1014


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

1152


How is it possible to know the number of rows returned in result set?

1060


What is difference between variable declaration and variable definition?

1025


What is mvc php?

977


Is php a float?

1081


Explain soundex() and metaphone().

1084


How to create a text file in PHP?

1185


Can you convert php to html?

1027


What is cURL in PHP?

1042