Builder::map( callable $callback )
Maps from the results of the query to a new array using the callback.
Contents
Parameters
- $callback
-
(callable) (Required) The callback to use to map the results.
Return
(array) The mapped results.
Source
File: src/Events/Custom_Tables/V1/Models/Builder.php
public function map( callable $callback ): array {
return array_map( $callback, $this->get() );
}
Changelog
| Version | Description |
|---|---|
| 6.0.1 | Introduced. |