Builder::map( callable $callback )

Maps from the results of the query to a new array using the callback.


Parameters

$callback

(callable) (Required) The callback to use to map the results.


Top ↑

Return

(array) The mapped results.


Top ↑

Source

File: src/Events/Custom_Tables/V1/Models/Builder.php

	public function map( callable $callback ): array {
		return array_map( $callback, $this->get() );
	}

Top ↑

Changelog

Changelog
Version Description
6.0.1 Introduced.