0
when we can use $ in constants?
8 Réponses
+ 2
Constant does not need the $, right?
+ 2
there are two ways of defining a constant
first way is using define(varname,value)
another way is using a underscore in the beginning of variable like $_pi=3.14
+ 1
due to what I have understood so far it is used for declaring variables in PHP, without it your variables would be useless
0
$ is used as the beginning of any variable name in php.
0
It is used to declare a variable
0
It is used to declare a variable
0
where can we use constant anyone can explain with example
0
we never use $ for constants.