is_iterable

Supported Versions: PHP 7 >= 7.1.0, PHP 8
Verify that the contents of a variable is an iterable value
<?php is_iterable(mixed $value): bool
<?php     public function isIterable($value)

    {

        return is_iterable($value);

    }
<?php                 $values = array_filter(explode('|', $values));

            }



            if (is_null($values) || (is_iterable($values) && count($values) === 0)) {

                return;

            }
<?php     {



        if (! is_iterable($items)) {

            if (Str::contains($items, '|')) {

                $items = explode('|', $items);

            } else {
<?php     {

        $items = $items ?? $this->params->get(['src', 'id', 'path']);



        $items = is_iterable($items) ? collect($items) : collect([$items]);



        return $items->map(function ($item) {

            $data = ['url' => $this->generateGlideUrl($item)];