LookAhead: PHP5 Feature Set

Where we keep all the boring tidbits about the PHPDN site, the news, and what not.

Moderator: General Moderators

Your Favorite PHP5 feature?

__construct(), __descruct(), __clone()
31
20%
Object now passed by reference
22
14%
Abstract classes
7
4%
Interface classes
3
2%
Exceptions, Try/Catch
29
18%
Private, Protected, Public methods and variables
47
30%
instanceof
1
1%
__call()
2
1%
Type checking for Objects
4
3%
__autoload()'ing classes!
11
7%
 
Total votes: 157

User avatar
greenhorn666
Forum Commoner
Posts: 87
Joined: Thu Aug 14, 2003 7:14 am
Location: Brussels, Belgium

Introspection

Post by greenhorn666 »

All those features are great!
I was waiting for this OO approach in PHP and we are finally getting it...
Two things that would be even nicer:

- type safe, not just class safe
- introspection

That, IMHO, would make php OO almost perfect!
ChrisMeier
Forum Newbie
Posts: 3
Joined: Sun Aug 17, 2003 2:31 pm
Location: Nuremberg, Germany
Contact:

Post by ChrisMeier »

The exception stuff is one of the IMHO important things I often missed when coding PHP.
As a C++-Programmer I was used to try/catch possible errors in certain passages and thus was very relieved to hear that exceptions were going to be implemented in PHP5.

Second big thing I await eagerly:
private/protected/public methods in PHP OO.

Now get some good ol' pointers in here and I'll start celebrating :wink: (just kidding 8) )

Greets,
Chris
User avatar
wmasterj
Forum Commoner
Posts: 40
Joined: Mon Aug 18, 2003 5:52 pm
Location: Stockholm, Sweden

Good

Post by wmasterj »

I thought that was a very good article. Althoguh i knew most of it from before (Java). It was explanetory in a way that even i needed.

Nice work man!
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post by Straterra »

I am a Visual Basic programmer..and since the introduction of .Net, I have fallen in love with the Try/Catch. It is a VERY usefull object..I find myself trying to write VB6/.Net hybrids just because of the Try/Catch in .Net...
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

cruzada, coming from a delphi coder myself, that's exactly how i would have put it.

i voted for the OO portion. Just started fooling with OO myself, but after seeing the new enhancements, i went ahead and downloaded beta heh
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post by dull1554 »

whens the official release coming (that is of v 5.0)
Post Reply