Maybe, it was "correct" even in the past, but I am astonished that the following special "variable declaration" works. Although there is not var $MissingText in the class, one can fill it with data and pass it to the object.
<?php class Output { var $Text; function PrintOutput($Text){ echo $Text; } } $Message = new Output(); // first attempt $Message -> Text = "Hello World"; $Message -> PrintOutput($Message -> Text); // second attempt $Message -> MissingText = "Hello Moon"; $Message -> PrintOutput($Message -> MissingText); ?> Maybe you can correct me. Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php