What is namespace and use in php?
Answer / Kuldeep Malik
In PHP, a namespace is a container for organizing classes, functions, and constants to prevent naming conflicts. The 'use' keyword allows importing namespaces or individual identifiers from the imported namespace into the current scope, making them accessible without having to specify the fully qualified name.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of variables in php?
Is age interval or ordinal data?
What does the function get_magic_quotes_gpc() means?
Difference between get and post method.
Explain how can we execute a php script using command line?
How can you create a session in php?
Why did you choose this particular career path?
Do you know what is the difference between mysql_fetch_object() and mysql_fetch_array()?
What is namespace and use in php?
What is the difference between require and include in php?
display selected value in dropdown list through javascript without page refresh
What is $this in php?