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
Where is php code written?
What is a php namespace?
What is == and === in php?
Does browser understand php?
Why do we use inheritance in php?
What is exception handling in php?
Can a super () and this () keywords be in same constructor?
How to create a web form?
How to retrieve values out of an array?
What is new keyword in php?
What is isset and unset in php?
i m a B.E,passed out few yrs bak failed to find good job due to less marks now thinkin of a career as PHP developer. is it a lucarative field and wat r career prospects; hv heard dat initial salary is very less bout 6k also most jobs r contrct jobs.pls guide me need ur valuable advice.pls hellppp!! thnx..
Why php 7 is faster?
Why is facebook still using php?
What is a php certification?