array_pop

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Pop the element off the end of array
<?php array_pop(array &$array): mixed
<?php     public function removeList()

    {

        array_pop($this->list);

    }



    public function render()
<?php     public function removeList()

    {

        array_pop($this->list);

    }



    public function render()
<?php         $directories = preg_split('/[.\/(\\\\)]+/', $rawCommand);



        $camelCase = str(array_pop($directories))->camel();

        $kebabCase = str($camelCase)->kebab();



        $this->component = $kebabCase;
<?php     public function dehydrate($context)

    {


        app()->instance('redirect', array_pop(static::$redirectorCacheStack));



        $to = $this->storeGet('redirect');

        $usingNavigate = $this->storeGet('redirectUsingNavigate');
<?php     function endLivewireRendering()

    {

        array_pop(static::$livewireComponents);

    }



    static function currentRendering()
<?php         }



        return function () use ($removals) {

            while ($removals) array_pop($removals)();

        };

    }

}
<?php         array_push(static::$renderStack, $component);



        return tap($callback(), function () {

            array_pop(static::$renderStack);

        });

    }
<?php     protected function popOffComponentStack()

    {

        array_pop($this::$componentStack);

    }



    protected function isRemoval($value) {
<?php             return end($array);

        }



        $finalItem = array_pop($array);



        return implode($glue, $array).$finalGlue.$finalItem;

    }
<?php     public function pop($count = 1)

    {

        if ($count === 1) {

            return array_pop($this->items);

        }



        if ($this->isEmpty()) {
<?php         $collectionCount = $this->count();



        foreach (range(1, min($count, $collectionCount)) as $item) {

            array_push($results, array_pop($this->items));

        }



        return new static($results);
<?php         $this->registry->register($signal, $callback);



        with($this->getHandlers(), function ($handlers) use ($signal) {

            $lastHandlerInserted = array_pop($handlers[$signal]);



            array_unshift($handlers[$signal], $lastHandlerInserted);
<?php         $result = BoundMethod::call($this, $callback, $parameters, $defaultMethod);



        if ($pushedToBuildStack) {

            array_pop($this->buildStack);

        }



        return $result;
<?php         $this->resolved[$abstract] = true;



        array_pop($this->with);



        return $object;

    }
<?php         if (is_null($constructor)) {

            array_pop($this->buildStack);



            return new $concrete;

        }