Which of the following is NOT a valid way to return multiple values from a PHP function?
- Using an array
- Using a class with multiple properties
- Using a comma-separated string
- Using multiple return statements
While using a comma-separated string is technically possible, it's not a good practice for returning multiple values. The other options are valid approaches for returning multiple values.
Loading...
Related Quiz
- A PHP while loop will always execute its block of code ______.
- In PHP, you can define an interface using the interface keyword like interface InterfaceName { ______ }.
- Which superglobal array is used to access session variables in PHP?
- How are variables in PHP declared?
- Which of the following SQL clauses is used to filter the results of a query?