+ 8
Is it correct code??
I have seen this code but it gives error in php playground. How can I report about this code to sololearn ?? https://www.sololearn.com/post/764387/?ref=app
5 ответов
+ 5
It is correct. However, it's just deprecated because of case-insensitive. And that's what the message said.
+ 2
CarrieForle but when I run this code on playground it is error occurred
+ 1
This? "Deprecated: define(): Declaration of case-insensitive constants is deprecated in ./Playground/file0.php on line 2 Deprecated: Case-insensitive constants are deprecated. The correct casing for this constant is "MSG" in ./Playground/file0.php on line 3 Hi SoloLearners!"
It's telling you it's deprecated. You can stop from showing this by putting
error_reporting(E_ALL ^ E_DEPRECATED);
This line will stop the code showing deprecated code errors.
+ 1
Yes
0
arabic