ParseError thrown

syntax error, unexpected '$pairs' (T_VARIABLE), expecting '('