Create a numerically re-indexed array based on the current array.

/**
 * Create a numerically re-indexed array based on the current array.
 */
public function reindex(): self

Examples

$arrays = Arrays::create([10 => 'foo', 111 => 'bar'])->reindex()->toArray();

print_r($arrays);

The above example will output:

Array
(
    [0] => foo
    [1] => bar
)

Getting Started

Methods