Which PHP data type can hold multiple values?

  • int
  • float
  • string
  • array
The array data type in PHP can hold multiple values. It is a versatile data type that allows you to store multiple elements of different types in a single variable. Arrays in PHP can be indexed or associative, providing flexibility in accessing and organizing data. Arrays are commonly used for storing collections of related values or managing complex data structures. Learn more: https://www.php.net/manual/en/language.types.array.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *