array_values

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return all the values of an array
<?php array_values(array $array): array
<?php             $assetsHead = '';

            $assetsBody = '';



            $assets = array_values(SupportScriptsAndAssets::getAssets());




            if (count($assets) > 0) {
<?php             $entries = head((array) $this->whereStartsWith('wire:'.$name));



            $directive = head(array_keys($entries));

            $value = head(array_values($entries));



            return new WireDirective($name, $directive, $value);

        });
<?php             "/{$this->existingParser->className()}::class/"    => $this->className() . '::class',

        ];



        return preg_replace(array_keys($replaces), array_values($replaces), $file_content);

    }

}
<?php             return  $value->serializeForLivewireResponse();

        }



        if (is_array($value) && isset(array_values($value)[0])) {

            $isValid = true;



            foreach ($value as $key => $arrayValue) {
<?php             }



            if ($isValid) {

                return array_values($value)[0]::serializeMultipleForLivewireResponse($value);

            }

        }
<?php         if (is_array($uploads) && isset($uploads[0]) && $uploads[0] instanceof TemporaryUploadedFile) {

            $this->dispatch('upload:removed', name: $name, tmpFilename: $tmpFilename)->self();



            app('livewire')->updateProperty($this, $name, array_values(array_filter($uploads, function ($upload) use ($tmpFilename) {

                if ($upload->getFilename() === $tmpFilename) {

                    $upload->delete();

                    return false;

                }



                return true;

            })));

        } elseif ($uploads instanceof TemporaryUploadedFile && $uploads->getFilename() === $tmpFilename) {

            $uploads->delete();
<?php     public static function compileDirectives($template, $directives)

    {

        $openings = array_keys($directives);

        $closings = array_values($directives);



        $openingDirectivesPattern = static::directivesPattern($openings);

        $closingDirectivesPattern = static::directivesPattern($closings);
<?php             } else {



                $rule = head(array_values($rules));




                $rule = (string) str($rule)->before(':');
<?php             $outer = array_keys($bindings)[0];

            $inner = array_values($bindings)[0];

            $directive = array_values($directives)[0];
<?php             $outer = array_keys($bindings)[0];

            $inner = array_values($bindings)[0];

            $directive = array_values($directives)[0];
<?php             static::addDependencyForCallParameter($container, $parameter, $parameters, $dependencies);

        }



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

    }



    protected static function substituteNameBindingForCallParameter($parameter, array &$parameters, int &$paramIndex)
<?php             $parameters = array_merge(

                array_filter($parameters, function ($key) { return ! is_int($key); }, ARRAY_FILTER_USE_KEY),

                array_values(array_filter($parameters, function ($key) { return is_int($key); }, ARRAY_FILTER_USE_KEY))

            );



            return;
<?php             $attributes = $this->getAttributesFromAttributeString($matches['attributes']);



            $keys = array_keys($attributes);

            $values = array_values($attributes);

            $attributesCount = count($attributes);



            for ($i=0; $i < $attributesCount; $i++) {
<?php             $methods = Utils::getPublicMethodsDefinedBySubClass($root);




            $methods =  array_values(array_diff($methods, ['render']));




            $methods[] = '__dispatch';
<?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]))),

            ];

        });