What is the correct way to store multiple values in an array in PHP?
To store multiple values in an array in PHP, you can simply create an array variable and assign the values to it using square brackets. Each value is separated by a comma within the square brackets. This allows you to easily access and manipulate the values stored in the array.
// Storing multiple values in an array
$values = [10, 20, 30, 'hello', true];