Re: accessing functions inside a class

From: Date: Mon, 21 Apr 2003 13:41:02 +0000
Subject: Re: accessing functions inside a class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144633@lists.php.net to get a copy of this message
> if you have a function inside of a class like: > class db { > function connect() { > //put whatever code here > } > function get_row($result_query) { > //code here > } } > > now to get to those functions would i use: > $db_name = new db; > $db_name->connect(); > $db_name->get($var); Yes > or would it be: > $db_name=new db; > $db_name.connect(); > $db_name.get($result); No. Period is the concatinate character in PHP. $string = "This" . "That"; ---John Holmes...

« previous php.general (#144633) next »