Return an array of all values stored array.

/**
 * Return an array of all values stored array.
 *
 * @return array Returns an indexed array of values.
 */
public function getValues(): array

Examples

$result = Arrays::create([1, 2, 3, 4, 5])->getValues();

print_r($result);

The above example will output:

Array
(
    [0] => 1
    [1] => 2
    [2] => 3
    [3] => 4
    [4] => 5
)

Getting Started

Methods