having problems with constants in PHP wondering if someone can explain:
this works
const _ROOT = 'd:/aphp/www';
echo "r="._ROOT;
as does this:
if (true)
define('_ROOT','d:/aphp/www');
echo "r="._ROOT;
but this gives the error: Parse error: syntax error, unexpected T_CONST
if (true)
const _ROOT = 'd:/aphp/www';
echo "r="._ROOT;
I am using php 5.3.2