A developer wants to store multiple values in a single variable. Which of the following data types in PHP should he/she use?

  • Array
  • String
  • Integer
  • Object
To store multiple values in a single variable, an array should be used in PHP. Arrays can hold various data types and are versatile for handling collections of data.
Add your answer
Loading...

Leave a comment

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