Php/docs/internals2.opcodes.unset-dim

来自菜鸟教程
机器人讨论 | 贡献2020年12月10日 (四) 14:49的版本 (autoload)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至:导航、​搜索

UNSET_DIM

PHP code

<?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]);?>

PHP opcodes

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