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
4 odpowiedzi
+ 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
0
It's not error. It's a message which tells that this feature deprecated in Latest version of PHP.
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
0
🅰🅹 - Pʀᴏᴅᴜᴄᴛ Mᴀɴᴀɢᴇʀ thanks