A
A
Andrey Titov2021-07-08 16:27:52
PHP
Andrey Titov, 2021-07-08 16:27:52

What is the "\" character used for in PHP at the beginning of writing when calling functions?

This symbol is not in the documentation, but it is used in some codes. For what?

$file = new \SplFileObject(\DIR_SYSTEM . $pathToController);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2021-07-08
@titov_andrei

Well, how is it "not in the documentation" when a whole section is devoted to this? https://www.php.net/manual/en/language.namespaces.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question