Welcome Guest, Not a member yet? Register   Sign In
PHP5 OOP Standards
#1

[eluser]IamPrototype[/eluser]
Hi guys! Smile

I've read a lot about PHP5 standards, but I was wondering if there were any - special - OOP standard in PHP5?

Btw, what is the "right" why to declare variables in the start of a class? I've seen a guy doing this.

Code:
public $name = "John Doe";

Step away from public... and tell me if that's a way to do it or a wrong way to do it?

I like doing this (mostly because I've seen a lot people are doing it like this).

Code:
public var $name = "John Doe";

Any links with PHP5 OOP standards would be nice! Thanks! Smile


Messages In This Thread
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:25 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:34 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:53 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:54 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:54 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 07:56 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 08:00 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 08:02 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 08:04 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 08:07 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 08:21 AM
PHP5 OOP Standards - by El Forum - 06-18-2009, 12:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB