<?php
namespace default
gives me an unexpecected T_DEFAULT, is there any way of working around this? Can I escape the reserved word somehow?
My system uses the name of the current module in my site for the namespace so it would be nice to be able to use any string as a namespace.
You can't use reserved words like default
for namespaces in PHP - you'll have to find a workaround (_default
, default_
, default1
etc.?).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With