Reply to Re: Can I do this in php5?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация