If I declare a variable inside a foreach loop, such as:
foreach($myArray as $myData) { $myVariable = \'x\'; }
Does PHP destroy it, and
According to my experiment, it's the same:
prints: int(2)