Talking about PHP Namespace



\strlen('hello') = 5
namespace\strlen('hello') = -5
__NAMESPACE__ . '\strlen("hello")' equates to my\name\strlen("hello") = -5



It's a fine time to leave me loose wheel (ie. the Linux group name) ... but we're going to let the Warning ... constant(): Couldn't find constant 1 ... that resulted from ...

echo "namespace\MYCONST = '" . constant($d) . "' <br>"; // at line 58

... through, okay?!


namespace\MYCONST = ''
__NAMESPACE__ . '\MYCONST' equates to my\name\MYCONST = 1