int checkTagContents(int $checktype, int $flags, int $msgid, string $tagname1[, string $tagname2...]);
•$checktype
•1 - check all $tagname1 tags to make sure that they contain nothing other than $tagname2, $tagname3, etc. and no other elements
•$flags (when $checktype is 1)
•1 - display appropriate error messages if needed
•2 - $tagname1 tags must directly contain at least one of the allowed elements; if a message is generated due to this flag, then the message id used will be $msgid+1 unless $msgid is -1
•4 - the $msgid is only for messages caused by flag 2 (1 will not be added to $msgid in this case); messages caused by flag 1 will not have a message ID
•8 - check only the last child of the current node (good to use in end tag name programs)
•16 - after $msgid, include a string to prepend to any displayed messages
•32 - only check to make sure that $tagname1 tags directly contain at least one of the allowed elements (sets flag 2 and does not display error messages for tags used that are not listed as an allowed tag in the function parameters); returns 1 or greater (indicating which allowed element was used) if an allowed element is used
•64 - $tagname1 tags must contain, in order, one of each of the other listed tags (New v9.9914)
•Default return value is 0
•2 - returns 1 if the last child of the current node contains a "th" element (does not look in "td" elements), else returns 0; DO NOT SUPPLY ANY PARAMETERS OTHER THAN $checktype
•$msgid - the message ID to use if any messages are generated; use -1 for no message ID