Documentation

Arrayable

Interface to declare that instances can be converted into an array.

It is recommended that classes that use the ArrayTrait trait declare they implement this interface.

Tags
since
1.3

Table of Contents

toArray()  : array<string|int, mixed>
Convert this object into an array.

Methods

toArray()

Convert this object into an array.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

An array.

Search results