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

[eluser]Phil Sturgeon[/eluser]
var is just to tell PHP that this is a variable (more accurately a property) of your class.

public/private/protevted tell PHP 5 that it is a special kind of var. This means you dont need to say that it is a "public variable" and then also mention it is a "variable" as you are repeating yourself.


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