What does a \ (backslash) do in PHP (5.3+)?

后端 未结 4 1499
长情又很酷
长情又很酷 2020-11-22 16:22

What does a \\ do in PHP?

For example, CSRF4PHP has \\FALSE, \\session_id, and \\Exception:

publi         


        
4条回答
  •  梦谈多话
    2020-11-22 16:44

    The \ is used in PHP 5.3 for namespaces. See http://www.php.net/manual/en/language.namespaces.rationale.php for more information on namespaces and PHP.

提交回复
热议问题