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
- In PHP, an array can only hold values of the same data type.
- Which of the following is a comparison operator in PHP?
- In PDO, which method is used to bind a value to a named placeholder in a prepared statement?
- What are some common benefits of using Object-Oriented Programming in PHP?
- What function do you use in PHP to execute a query against a MySQL database?