Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
PHP
/
Namespaces
What does use Vendor\Mail\Client; do in a PHP file?
from Namespaces
PHP 8.3.33
beginner
1 min
What does use Vendor\Mail\Client; do in a PHP file?
It creates a file-local class-name alias used during name resolution.
It immediately requires the file that declares Client.
It installs the Composer package that owns Client.
It makes Client available as a global class alias in every file.
Check
Ask AI about this kata
Report an error
previous kata
A file imports App\Models\Invoice, then sets $class = "Invoice" and executes new $class()…
Quiz
next kata
What does this program print?
Predict the output
A new version is available
Reload