0

when we can use $ in constants?

9th Aug 2016, 10:55 PM
Diny 1357
Diny 1357 - avatar
8 Respuestas
+ 2
Constant does not need the $, right?
14th Aug 2016, 4:46 PM
Aziz Maghfur
Aziz Maghfur - avatar
+ 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
19th Aug 2016, 11:31 AM
Tejash Shrestha
Tejash Shrestha - avatar
+ 1
due to what I have understood so far it is used for declaring variables in PHP, without it your variables would be useless
12th Aug 2016, 10:37 PM
Abraham Alfred
Abraham Alfred - avatar
0
$ is used as the beginning of any variable name in php.
10th Aug 2016, 6:47 PM
Sumitabha Banerjee
Sumitabha Banerjee - avatar
0
It is used to declare a variable
17th Aug 2016, 1:09 PM
Sanusi Usman
Sanusi Usman - avatar
0
It is used to declare a variable
17th Aug 2016, 1:09 PM
Sanusi Usman
Sanusi Usman - avatar
0
where can we use constant anyone can explain with example
14th Sep 2016, 5:41 AM
Ranjit Singh
Ranjit Singh - avatar
0
we never use $ for constants.
11th Nov 2016, 4:20 AM
Khanyisani