getAttIndex[ForStartTag]() (tick_24Validator Engine Only)

int getAttIndex(string $attribute)

int getAttIndexForStartTag(string $attribute)

$attribute - the attribute name in the tag to search for

Returns the index of the attribute. If the attribute does not exist, then the function returns 0. For example, if the attribute exists and is the first attribute for the tag, then the function returns 1.

getAttIndexForStartTag() is like getAttIndex() but can also be used in an end tag program to get the attribute index of the corresponding start tag; may require that runProgram(21) be used in the start tag name program (New v11.0112)