0
Fellow Sololearners I need help with php, I don't get what's happening here
<?php define("MSG", "Hi SoloLearners!"); echo MSG; // Outputs "Hi SoloLearners!" ?>
3 odpowiedzi
+ 1
define(identifier, constant_value)
This is a way to create a constant.
https://www.php.net/manual/en/language.constants.syntax.php
0
ChaoticDawg , so what's the constant here?
0
It would be similar to:
const MSG = "Hi SoloLearners!";
Review the provided link it should answer your questions.