Complete the code to declare a namespace named MyApp.
<?php namespace [1]; class User {}
The correct syntax to declare a namespace is namespace MyApp; with the exact name.
Complete the code to declare a nested namespace named App\Controllers.
<?php namespace [1]; class HomeController {}
Namespaces in PHP use backslashes \ to separate levels, so App\Controllers is correct.
Fix the error in the namespace declaration syntax.
<?php [1] MyApp; class Product {}
The keyword to declare a namespace is namespace all lowercase without a semicolon after it.
Fill both blanks to declare a namespace and define a class inside it.
<?php [1] [2]; class Order {}
The correct syntax is namespace OrderApp; to declare the namespace.
Fill all three blanks to declare a nested namespace and define a class inside it.
<?php [1] [2]\[3]; class Customer {}
The correct syntax is namespace App\Models; with lowercase keyword and backslash separator.
