public function findTaggedServiceIds($tag)
    {
        $ids = [];

        foreach ($this->serviceTags as $id => $tags) {
            if (in_array($tag, $tags)) {
                $ids[] = $id;
            }
        }

        return $ids;
    }
public function findTaggedServiceIds($tag)
    {
        $ids = [];

        foreach ($this->serviceTags as $id => $tags) {
            if (in_array($tag, $tags)) {
                $ids[] = $id;
            }
        }

        return $ids;
    }
public function findTaggedServiceIds ( $ tag ) { $ ids = [ ] ; foreach ( $ this -> serviceTags as $ id => $ tags ) { if ( in_array ( $ tag , $ tags ) ) { $ ids [ ] = $ id ; } } return $ ids ; }
Find all service ids with a given tag

@param string $tag
@return array
Find all service ids with a given tag