What types of values can be stored in an array in PHP?

In PHP, arrays can store various types of values such as integers, floats, strings, booleans, objects, and even other arrays. This flexibility allows developers to create complex data structures and store different types of data within a single array.

// Example of an array storing different types of values
$array = [10, 3.14, "hello", true, ["apple", "banana"]];