is()
is(string $category, string $document) : boolean
Returns whether or not the document is of the category
Parameters
string | $category | The category in question |
string | $document | The document to check |
Returns
boolean —Whether or not the document is in the category