Quote:
Originally Posted by Exolent[jNr]
They both do the same operation.
|
Actually, this is not quite true. The second statement stores 0 in the DAT section and pushes it onto the stack three times, whereas the first only stores it once. So the operation in assembly will be, in pseudocode (cus I'm too lazy to write it up in proper ASM):
PHP Code:
DAT
adr001 0
adr002 0
adr003 0
CODE
array=adr001
array+1=adr002
array+2=adr003
Whereas the other will look like:
PHP Code:
DAT
adr001 0
CODE
array+2=adr001
array+1=array+2
array=array+1
__________________