Zephir\Backends\ZendEngine3\Backend::arrayUnset PHP Method

arrayUnset() public method

public arrayUnset ( Variable $variable, $exprIndex, $flags, Zephir\CompilationContext $context )
$variable Zephir\Variable
$context Zephir\CompilationContext
    public function arrayUnset(Variable $variable, $exprIndex, $flags, CompilationContext $context)
    {
        $context->headersManager->add('kernel/array');
        $variableCode = $this->getVariableCodePointer($variable);
        if ($exprIndex->getType() == 'string') {
            $context->codePrinter->output('zephir_array_unset_string(' . $variableCode . ', SL("' . $exprIndex->getCode() . '"), ' . $flags . ');');
            return;
        }
        return parent::arrayUnset($variable, $exprIndex, $flags, $context);
    }