defining empty array in php code example Example: declare empty array in php Click to copy$emptyArray = []; $emptyArray = array(); $emptyArray = (array) null;