Posted by Manfred Kooistra on 01/13/07 12:18
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);
?
[Back to original message]
|