[Solved] What exactly means equal ‘=’ in PHP and how can I deduce where is a simply assign or array extend?


= is always an assignment, the only special case here is the assignment to $arr[]. You may read that as “assignment to unspecified array key”, and it results in the array key being auto-generated. It’s analogous to arr.push(...) or similar in many other languages.

1

solved What exactly means equal ‘=’ in PHP and how can I deduce where is a simply assign or array extend?