Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return all the values of an array
<?php array_values(array $array): array
<?php             return [

                'pending_jobs' => $batch->pending_jobs - 1,

                'failed_jobs' => $batch->failed_jobs,

                'failed_job_ids' => json_encode(array_values(array_diff((array) json_decode($batch->failed_job_ids, true), [$jobId]))),

            ];

        });
<?php             return [

                'pending_jobs' => $batch->pending_jobs,

                'failed_jobs' => $batch->failed_jobs + 1,

                'failed_job_ids' => json_encode(array_values(array_unique(array_merge((array) json_decode($batch->failed_job_ids, true), [$jobId])))),

            ];

        });
<?php     public static function divide($array)

    {

        return [array_keys($array), array_values($array)];

    }
<?php                 $result[] = $item;

            } else {

                $values = $depth === 1

                    ? array_values($item)

                    : static::flatten($item, $depth - 1);



                foreach ($values as $value) {
<?php     public function values()

    {

        return new static(array_values($this->items));

    }
<?php         if ($required === false) {

            return array_is_list($options)

                ? array_values(array_filter($answers, fn ($value) => $value !== 'None'))

                : array_filter($answers, fn ($value) => $value !== '');

        }
<?php         }



        return static::callBoundMethod($container, $callback, function () use ($container, $callback, $parameters) {

            return $callback(...array_values(static::getMethodDependencies($container, $callback, $parameters)));

        });

    }
<?php             static::addDependencyForCallParameter($container, $parameter, $parameters, $dependencies);

        }



        return array_merge($dependencies, array_values($parameters));

    }
<?php         if (isset($parameters[0]) && $parameters[0] instanceof Cookie) {

            $cookie = $parameters[0];

        } else {

            $cookie = $this->make(...array_values($parameters));

        }



        if (! isset($this->queued[$cookie->getName()])) {
<?php     public static function except($cookies)

    {

        static::$neverEncrypt = array_values(array_unique(

            array_merge(static::$neverEncrypt, Arr::wrap($cookies))

        ));

    }
<?php     protected function getOptionalArguments(array $args, array $connection)

    {

        return array_values(array_filter($args, function ($key) use ($connection) {

            return ! empty($connection[$key]);

        }, ARRAY_FILTER_USE_KEY));

    }

}
<?php         ];



        return str_replace(

            array_keys($replace), array_values($replace), parent::buildClass($name)

        );

    }
<?php             $dictionary[$this->getDictionaryKey($item->getKey())] = $item;

        }



        return new static(array_values($dictionary));

    }
<?php             return parent::unique($key, $strict);

        }



        return new static(array_values($this->getDictionary()));

    }
<?php         $dictionary = Arr::only($this->getDictionary(), array_map($this->getDictionaryKey(...), (array) $keys));



        return new static(array_values($dictionary));

    }