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

[eluser]IamPrototype[/eluser]
I actually just wrote public for the heck of it. Normally in my scripts it's "var $name". I think default is public so it's faster to just skip the public. I might have confused some people here with my topic, sorry guys!

Since n0xie wrote that it's PHP4 syntax I'm using. I'm willing to change my habit and write "public $var" or just plain simple, "$var" (guess that would work either way), since my server is up to date with PHP5, so I see no point in using PHP4 syntax.

----

Edit: Would it make my scripts any more safe, if I write "private" in front of my instace ($ci). Just curious since you don't need to get instace anywhere else! (Right now I'm talking about libraries).


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