ParseError thrown

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