This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

ToElementCode

ToElementCode[e]
gives a non-negative integer code, less than the field size, associated with the element e.