Just started learning PHP out of curiosity. Currently going through all basic fundamentals in PHP and that's when I came across this function define that we do use to define variables with constant values. However, instead of showing me an expected output, it's giving me unexpected result. Can anybody help me?
define('HOST', 'localhost'); // syntax error, unexpected identifier "define", expecting "," or ";"
define('USER', 'root');