PHP - Manual: UNSET_DIM
2024-12-27
<?php
/*
* Unset the entry of array-value, which is specified by index, and store the original element value into "result".
* opcode number: 75
*/
$a = array(1,2,3);
unset($a[0]);
?>
Function name: (null)
Compiled variables: !0=$a
line | # | op | fetch | ext | return | operands |
---|---|---|---|---|---|---|
6 | 0 | INIT_ARRAY | ~0 | 1 | ||
1 | ADD_ARRAY_ELEMENT | ~0 | 2 | |||
2 | ADD_ARRAY_ELEMENT | ~0 | 3 | |||
3 | ASSIGN | !0,~0 | ||||
7 | 4 | UNSET_DIM | $2 | !0,0 | ||
8 | 5 | RETURN | 1 |
官方地址:https://www.php.net/manual/en/internals2.opcodes.unset-dim.php