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
Solution
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.

5e0d2dcd61e13770335616.png
https://www.php.net/manual/ru/language.types.string.php

Reminder:
When you use regular expressions in variables, but rather a backslash, it is particularly useful:
'\\d+'

Find more questions by tags PHP