# static of()

{% code title="Example.php" %}

```php
<?php use kim\present\utils\arrays\ArrayUtils;

ArrayUtils::of(3,6,9);
// expected output: ArrayUtils(array(3, 6, 9))
```

{% endcode %}

## Syntax

```php
ArrayUtils::of(mixed ...$elements) : ArrayUtils
```

### Parameter

* `...$elements`&#x20;

  > Elements used to create the array.

### Return value

* A new `ArrayUtils` instance.

## References

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of>" %}
