Retrieve object as an array

Return Return


Top ↑

Source Source

File: includes/abstracts/llms.abstract.database.store.php

	public function to_array() {

		return array_merge( array_combine( array_keys( $this->primary_key ), array( $this->id ) ), $this->data );


Top ↑

Changelog Changelog

Version Description
3.36.0 Hydrate before returning the array.
3.34.0 Return the item ID instead of item format as the value of the primary key.
3.14.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.