PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

UNSET_VAR

PHP code

<?php
/*
 * Unset the variable and store the original value into "result".
 * opcode number: 74
 */
$x 1;
$a='x';
unset($
$a);
?>

PHP opcodes

Function name: (null)

Compiled variables: !0=$x, !1=$a

line#op fetchextreturn operands
60 ASSIGN     !0,1
71 ASSIGN     !1,'x'
82 UNSET_VAR   $2 !1
93 RETURN     1

PHP Manual