I'm trying to learn this OOP stuff with the "Classes and PHP" article (http://www.phpbuilder.com/columns/rod19990601.php3) and I'm getting the following error "Catchable fatal error: Object of class Style could not be converted to string in ... on line 50". I still feel new to this stuff, so could someone possibly help me? I just don't understand where this is coming when I'm following exactly what the author says to do. Frustrating.
and line 50 is?
Sorry bout that. Line 50 is in the following function. It is the line that starts out "SIZE...
function TextOut($message=" ") { PRINT "<FONT FACE=\"$this->face\" ". "SIZE=$this->size COLOR=\"$this-> ". "text\">$message</FONT>\n"; }
Although I hate to say it, but I wouldn't use that article as it is meant for PHP4 and uses several deprecated HTML tags.
Check out this thread I found on Google: http://www.vbforums.com/showthread.php?t=378700
Oh, and the error is basically saying that PHP can't convert $this into a string for output.