Skip to content

Kirby 4.4.1

A::move()

Move an array item to a new index

A::move(array $array, int $from, int $to): array

Parameters

Name Type Default
$array * array
$from * int
$to * int

Return type

array

Parent class

Kirby\Toolkit\A