Re: [PHP] Object of class could not be converted to string

2009-06-18 Thread Martin Scotta
PHP tries to convert the class to string, but he can't because in your class is missing the __toString magic method. try to add this one and the error must be gone. On Thu, Jun 18, 2009 at 9:06 AM, Yuri Yarlei wrote: > > But what you trying to pass to the variable? > > I already see this error,

RE: [PHP] Object of class could not be converted to string

2009-06-18 Thread Yuri Yarlei
But what you trying to pass to the variable? I already see this error, but I see when I write $$ in the variable, you can see if you have some $$ in variables or try casting type with the function settype(); ex: settype($foo, "array"); settype($foo, "integer"); settype($foo, "string"); Or ma

RE: [PHP] Object of class could not be converted to string

2009-06-18 Thread Yuri Yarlei
But what you trying to pass to the variable? I already see this error, but I see when I write $$ in the variable, you can see if you have some $$ in variables or try casting type with the function settype(); ex: settype($foo, "array"); settype($foo, "integer"); settype($foo, "string"); Or maybe