Sometimes I find codes using the antislash when catching exception : catch(\Exception $e)
, and sometimes there is no antislash ! So what is the difference ?
Asked
Active
Viewed 17 times
0

pheromix
- 18,213
- 29
- 88
- 158
-
I would suggest you gen up on [PHP Namespaces](https://www.php.net/manual/en/language.namespaces.php) – RiggsFolly Jul 28 '23 at 15:43
-
I think this is a more useful answer about backslashes in namespaces for you: https://stackoverflow.com/questions/4790020/what-does-a-backslash-do-in-php-5-3 – SimonMayer Jul 28 '23 at 15:45