The definition of a function is " a relation from a set of inputs to a set of possible outputs where each input is related to exactly one output." (Mathinsight)
Therefore is a number (x values) appears more than once in the domain then this would not be a function since it doesn't fit the definition of a function.