My understanding is that print_r leaves an array pointer at the end of an array after execution. However, when I code:
$element = current($myArray);
print_r($element);
print_r($myArray);
$element = current($myArray);
print_r($element);
I can see that the current position of the pointer remains at the beginning of the array? I am simply trying to prove to myself that print_r is doing what the php manual says. Can anyone explain what's really happening? Thanks all.