You are here: Re: What does -> do? « PHP Programming Language « IT news, forums, messages
Re: What does -> do?

Posted by Rik on 01/13/07 12:25

Manfred Kooistra wrote:
> Okay, understood: classes and objects
> (http://de.php.net/manual/en/language.oop.php).
>
> So why does this work:
>
> require('Class_definition.php');
> $object = new Class;
> $object->function_defined_in_class($something);
> other_function_defined_in_class($object);
>
> but not this:
>
> require('Class_definition.php');
> $object = new Class;
> while($something) {
> $object->function_defined_in_class($something);
> }
> other_function_defined_in_class($object);

It highly depends on the specific class offcourse. Normally it would work,
unless there's something else going on inside the class. Offcourse, it
would only work when $something is altered by the
function_defined_in_class, else it'd be an infinite loop....
--
Rik Wasmus

 

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

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