public function getDispersion(array $needles) : array
    {
        $found = array_fill_keys($needles, []);
        foreach(array_keys($needles) as $needle)
        {
            $found[$needle] = $this->findAll($needle);
        }
        return $found;
    }
public function getDispersion(array $needles) : array
    {
        $found = array_fill_keys($needles, []);
        foreach(array_keys($needles) as $needle)
        {
            $found[$needle] = $this->findAll($needle);
        }
        return $found;
    }
public function getDispersion ( array $ needles ) : array { $ found = array_fill_keys ( $ needles , [ ] ) ; foreach ( array_keys ( $ needles ) as $ needle ) { $ found [ $ needle ] = $ this -> findAll ( $ needle ) ; } return $ found ; }
Return a list of positions that the needs were found in the text
@param array $needles
@return int[]
Return a list of positions that the needs were found in the text