> For the complete documentation index, see [llms.txt](https://arrayutils.docs.present.kim/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://arrayutils.docs.present.kim/methods/s/of.md).

# 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>" %}
