Conceptually what happens to an array that has all of its elements unset? Please see the below code for and example:
$ourArray = array(
"1",
"2",
"3",
"4"
);
foreach($ourArray as $key => $value){
unset($ourArray[$key])
}
In this case is the entire array considered unset? Or is the array considered empty?
Would $ourArray == array() or null?
No
Yes
By the way you can try out your own example with these testcases