Reply to Re: php classes calling functions using :: and ->

Your name:

Reply:


Posted by peter on 03/23/07 15:48

> Why use :: instead of -> then? hmm... I dunno, it's kewl? I've only used
> it once with a singleton where it seemed to make sense buy it's actually
> quite rare I think. People who work with objects big-time may have use for
> it, but I don't think it's actually all that necessary. It's good to have
> and good to know what it is and what it does, but on most days you'll be
> fine without it.

I think it is done to lower the overheads if for example you only need to
use 1 function within the class. Instead of having the overhead of
instantiating the class then calling the method (which I presume allocates
memory for the methods and properties).

[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

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