What is the alternative syntax for arrays in PHP if the [] syntax is not supported?

If the [] syntax for arrays is not supported in PHP, an alternative syntax is to use the array() function to create arrays. This function takes a list of values as arguments and returns an array containing those values.

// Alternative syntax for creating arrays in PHP if [] is not supported
$myArray = array('apple', 'banana', 'orange');
print_r($myArray);