In PHP, strings can be defined using either single quotes or double quotes.
- TRUE
- FALSE
This statement is true. In PHP, strings can be defined using either single quotes ('') or double quotes (""). Both single quotes and double quotes are used to delimit string literals. The choice between single quotes and double quotes depends on the specific requirements and whether variable interpolation or escape sequences are needed. Learn more: https://www.php.net/manual/en/language.types.string.php
Loading...
Related Quiz
- Which of the following are true about superglobals in PHP?
- You are writing a PHP script and you need to store a list of items that can be accessed by their position in the list. How would you do this using an indexed array?
- What is the purpose of a loop in PHP?
- Which of the following is a comparison operator in PHP?
- A common use case for Regular Expressions in PHP is to ______.