To create an empty array in PHP, you can use either of the following methods:
$emptyArray = array();
$emptyArray = [];
Both methods will create an empty array variable named $emptyArray that you can use to store elements later.
$emptyArray