Search found 2 matches

by rabadu
Wed Jul 30, 2003 6:57 am
Forum: PHP - Code
Topic: Function declaration
Replies: 2
Views: 232

I have found this syntax in some PHP examples, and since in C or simillar languages it's normal or obligatory to first declare, I have found this very useful. No error has been reported until now (see PHP versions). It was useful for some templates, when function has not been overloaded in extended ...
by rabadu
Wed Jul 30, 2003 5:56 am
Forum: PHP - Code
Topic: Function declaration
Replies: 2
Views: 232

Function declaration

Using Apache and Win32 CGI PHP 4.1.1, I wrote function declaration inside class: class event extends item{ function eventType( $type ) {;} After, in the same class, I have redeclared function to do something: function eventType( $type ) { -- functionality --- } Upgrading to PHP 4.3.2, I have get mes...