Why write two slashes?

All Shalom! See, there's this code
$controller = "main";
$controller = "Controllers\\".$controller."Controller";

Why write two slashes? What does it mean? Just the Internet was not able to find, for bad can search. "Controllers" as I understand it, the folder itself, but why two slashes did not understand :)
April 4th 20 at 00:31
1 answer
April 4th 20 at 00:33
In a PHP string with a backslash is the screen respectively when you need to really slash (and the namespace it is really needed), its use provokes incorrect behavior, and should he shielded.


When you use regular expressions in variables, but rather a backslash, it is particularly useful:

Find more questions by tags PHP