ParseError thrown

syntax error, unexpected '$name' (T_VARIABLE)