Actually, $this->$message would be wrong, but the concept is right. On 2/19/07, Leonard Burton <leonardburton@xxxxxxxxx> wrote:
HI, > $this->SetFont('Arial','B',15); what you include is a snippet from a class. Here is a brief into to how a class works, sort of like a function. The $this refers to the class from inside of the class. <?php class write{ var $message; function set($message){ $this->$message = $message; } function display(){ print "$this->message\n"; } }// class write //actually use the class $class = new write(); $class->set("This is a test message"); $class->display(); ?> I hope this helps. Leonard -- Leonard Burton, N9URK http://www.jiffyslides.com service@xxxxxxxxxxxxxxx leonardburton@xxxxxxxxx "The prolonged evacuation would have dramatically affected the survivability of the occupants." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php