In PHP, an array can only hold values of the same data type.

  • TRUE
  • FALSE
This statement is false. In PHP, an array can hold values of different data types. PHP allows you to store elements of different data types, such as integers, floats, strings, or even other arrays, within the same array variable. This flexibility makes arrays powerful and versatile for managing collections of related data. 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 *