Oihana PHP

Arrayable

Interface for objects that can be converted to arrays.

This interface defines a contract for objects that can provide an array representation of their data, useful for serialization, data export, or configuration management.

Tags
author

Marc Alcaraz (ekameleon)

since
1.0.0

Table of Contents

Methods

toArray()  : array<string|int, mixed>
Converts the object to an array.

Methods

toArray()

Converts the object to an array.

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

The array representation of the object.


        
On this page

Search results