0

Why it is showing error for constant in php

I have used true in define element , that's means my name becomes insensitive , so even if I use same name as I assign , it should show it on screen but why it is giving error then https://code.sololearn.com/wlpoVR7T9o93/?ref=app

15th Feb 2020, 1:12 PM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
4 Respuestas
+ 1
Prateek Kumar Agarwal Remove third argument then it will work fine. <?php define("MSG", "Hi SoloLearners!"); echo MSG; ?> Your answer is here https://externals.io/message/100535
15th Feb 2020, 1:31 PM
A͢J
A͢J - avatar
0
It's not error. It's a message which tells that this feature deprecated in Latest version of PHP.
15th Feb 2020, 1:16 PM
A͢J
A͢J - avatar
0
Yeah msg , but as I used true,it become insensitive ,that's means I can write it in capital or small both, and it will echo the same ? or it work other way
15th Feb 2020, 1:18 PM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar
15th Feb 2020, 2:21 PM
Prateek Kumar Agarwal
Prateek Kumar Agarwal - avatar