Which of the following data types in PHP is not scalar?
- int
- string
- array
- boolean
The non-scalar data type in PHP is an array. Arrays can hold multiple values and are not considered scalar because they are collections of values, not single values. Scalars include integers, strings, and booleans.
Loading...
Related Quiz
- What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
- You can use the $_SERVER superglobal in PHP to get the user's IP address.
- PHP is primarily used for which type of development?
- In a PHP do...while loop, where is the condition tested?
- You need to store a collection of key-value pairs in your PHP script. How would you do this using an array?