ParseError thrown

syntax error, unexpected '$id' (T_VARIABLE)