RE: [PHP-DB] EZ Question...I think
| From: | Brian Paulson | Date: | Tue, 04 Dec 2001 00:15:12 +0000 |
| Subject: | RE: [PHP-DB] EZ Question...I think | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14788@lists.php.net to get a copy of this message | ||
Thomas,
It a used to referance a class method or proporty
Example:
<?
Class Simple
{
var $debug = True; // Proporty
Function Debug($msg) // Method
{
if($this->debug == True)
{
Print($msg);
}
}
}
//To call the class you would do something like this
$simple = new simple();
$simple->debug("This is a test message");
?>
That should be enough to get you started
Thank You
Brian Paulson
Sr. Web Developer
bpaulson@chieftain.com
http://www.chieftain.com
-----Original Message-----
From: Thomas [mailto:zaxisnet@hotmail.com]
Sent: Monday, December 03, 2001 2:32 PM
To: php-db@lists.php.net
Subject: [PHP-DB] EZ Question...I think
I have looked into some source code that I found, but I'm a newbie at
this, and don't understand..
if ( 0 == $this->link_id) {
In this statment, what does the '->' repersent? this statment
(operator?) occurs alot in this code that I have, but I can't find the
definition on any site...can anyone help?
Please reply to group.
Thanks.
Thomas
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net