Questions tagged as 'php-internals'

2
answers

How does PHP foreach work?

To clarify, this question is not about when foreach is used or what its differences are for other repetition loops , but rather on the operation of foreach itself. In documentation , little is said about exactly how fore...
asked by 21.09.2018 / 18:31
0
answers

In PHP, does the inner pointer of an array make up its value?

Consider the following array : $a = [1, 2, 3, 4, 5]; However, I noticed that the pointer position of the array is also copied. If before we set $b = $a to be a copy of $b we change the position of the pointer: $a...
asked by 06.12.2018 / 15:14