Habari\SuperGlobal::map PHP Method

map() public method

Apply a map function to this array, like array_map()
public map ( callback $fn ) : SuperGlobal
$fn callback the name of the function to map through
return SuperGlobal the result of the mapping
    public function map($fn)
    {
        return new SuperGlobal(array_map($fn, $this->get_array_copy_raw()));
    }