php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

php

can anyone decode me php constant define() can we use variable instead of constant

6th Jun 2017, 2:38 AM
Prashanth Kumar
Prashanth Kumar - avatar
3 Answers
+ 8
ok i got the answer
6th Jun 2017, 7:14 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 7
and sorry for typing mistake 😝
6th Jun 2017, 7:14 AM
Prashanth Kumar
Prashanth Kumar - avatar
+ 2
yes, you can use a variable instead of a constant. I actually don't really understand your problem. Could you explain it a bit more?
6th Jun 2017, 4:19 AM
Raphaël Charozé
Raphaël Charozé - avatar