php - is there a way to have a namespace with a space in it?
one text
One of the directories in my app has the name web services
. For the classes contained in that folder I have tried declaring the namespace various ways, including:
namespace web services;
namespace 'web services';
namespace [web services];
namespace {web services};
...none of which work. VS Code gives warnings on each of these.
The multitude of online documentation/forum posts/blogs regarding PHP namespaces do not mention anything about whether or not spaces are allowed; though all of the examples they show do not have any namespaces that contain spaces. Is it possible for a namespace to contain a space so it matches the app's directory structure?
PHP 7.4.13 is being used for this app.
Source