Which of the following are valid ways to define a string in PHP?
- 'Hello World'
- "Hello World"
- <<
- All of the above
All of the given options are valid ways to define a string in PHP. Strings can be defined using single quotes (''), double quotes (""), or heredoc syntax (<<
Loading...
Related Quiz
- The filter_input_array() function in PHP is used to get the ______ values and optionally filter them.
- How can we change the maximum size of the files to be uploaded?
- A common use case for the $_POST superglobal in PHP is to collect the form data after submitting an HTML form with ______.
- How do you connect to a MySQL database in PHP?
- What is the purpose of the array_push() function in PHP?