Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Can I do this in php5?
May 16, 2007, 5:28 pm
rate this thread
Re: Can I do this in php5?
You cannot do it exactly the same as in Java, but you don't really
need to worry about doing that in PHP. If you want, you can initialize
it with "$Client = new XML_RPC_Client();" but that's unnecessary. You
might as well just do "private $Client;" to make the field and then
"$Client = new XML_RPC_Client();" in a method. If you are concerned
because you are taking the object as an argument and setting $Client
to that, you can be selective with your arguments (in PHP5+) like:
public function setClient( XML_RPC_Client $argClient )
$this->Client = $argClient;
Note that you don't need to use =& in PHP5.
- » XML_RPC_Response fatal error: Call to undefined method kindof
- — Previous thread in » PHP Scripting Forum