Apply a datamapper-map onto a single data-record (assoc. array).


Syntax

datamap($data, $map): array|null


Parameter

@param array|null $data The data-record.

@param array|null $map The datamapper-map that defines how the data shall be mapped/converted.


Return

 In case of an error NULL is returned, else the mapped / modified $data record is returned.


Examples

Yet to come...

...