Posted by ZeldorBlat on 05/16/07 20:14
On May 16, 1:28 pm, Ming <minghu...@gmail.com> wrote:
> private fields declaration like Java
>
> require 'XML/RPC.php';
> ...
>
> private XML_RPC_Client $Client;
>
> I know I can do
>
> private $Client;
>
> Thanks,
Not in that context. Besides, why would you want to? Don't you trust
yourself to put the right thing in there? :)
Having said that, PHP allows you to specify the class of an argument
to a function. See this:
<http://www.php.net/manual/en/language.oop5.typehinting.php>
[Back to original message]
|