Re: php5 and possible oop features/questions
| From: | Marek Kilimajer | Date: | Mon, 06 Oct 2003 17:36:32 +0000 |
| Subject: | Re: php5 and possible oop features/questions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-165234@lists.php.net to get a copy of this message | ||
Tit "Black" Petric wrote:
will something in the likes of this be possible in php5? /***/ class some_classname {This is not necessery in php. As I know C++ has this feature but only so the class definition can be separated from its implementation. Definition goes to a header file so it can be included in other .cpp files in the same project. Marekfunction some_function();} function some_classname::some_function($prefix, $text) {return $prefix.": ".$text."\n";} $test = new some_classname; $test->some_function("Output","Hello World!");