In PHP, a line of code is terminated with a ______.
- Comma (,)
- Semicolon (;)
- Period (.)
- Colon (:)
In PHP, a line of code is terminated with a semicolon (;). The semicolon is a statement separator and it's necessary to end a statement before starting a new line with a new statement. This makes the code easier to read and understand. Learn more: https://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
Loading...
Related Quiz
- Which of the following are true about the switch statement in PHP?
- You need to access data sent via a form in your PHP script. How would you do this using the $_REQUEST superglobal?
- In PHP, an array can only hold values of the same data type.
- You need to declare a variable in PHP to store a user's age. How would you do this?
- You can create an object in PHP by using the new keyword followed by the class name like $object = new ______.