isDescendentOf() (tick_24Validator Engine Only)

int isDescendentOf(string $tagname1[, string $tagname2...])

Returns a positive integer if the current tag is a descendent (contained in) of any of the listed tag names, else the function returns 0. A tag name (called tag1) is a descendent of another tag (called tag2) if tag2 has been opened but not ended before tag1.

In versions prior to v14, this function was called isInRange(). That function name is now deprecated but still works.

See also: isInRangeEx()