- 1
the way of accessing constant inside the function
A constant which is created by define () cannot acceded inside a function using global keyword <?php define("m",40); function t() { global m; echo m; } t(); ?>
1 Resposta
+ 1
Always name constant in Uppercase :)
here how to use constant inside function
https://code.sololearn.com/wu6qqRDx632P/?ref=app