You are here: Re: Parent Objects « PHP Programming Language « IT news, forums, messages
Re: Parent Objects

Posted by Michael Fesser on 01/13/07 10:43

..oO(Sanders Kaufman)

>I read that, but I'm still a little confused.
>When I use a class's methods and such, I've been using "->".
>But it seems like this "::" is used the same way.
>What's the difference?

$someObject->method()
someClass::staticMethod()

'->' requires an instance of a class, whereas '::' is used to call
static class methods or constants without having an object. Additionally
it's used to call inherited methods.

Micha

 

Navigation:

[Reply to this 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

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