Linked by John Collins on Wed 21st Apr 2004 06:42 UTC
General Development The purpose of this article is to give a novice programmer the basic idea of what OOP is, as implemented using PHP. Readers should have a basic knowledge of programming ie what variables are, variable types, basic methods of writing comments, and how to enter code into a text editor.
Permalink for comment
To read all comments associated with this story, please click here.
Re: @tarmo
by rycamor on Wed 21st Apr 2004 13:57 UTC

I don't have any particular antipathy towards Python, but I have to say, I personally really like the '$' prepended on variable names, and I think PHP's nice simple way of dealing with that is much nicer than Perl, Bash, or TCL, for example, where there are ungainly additional rules as to what prepends a variable. It makes it easy to tell at a glance what is a variable in your code.

That, combined with 1) the ease of variable interpolation in strings via {$varname_or_expression}, 2) the concept of variable variable names, as in $$varname, and 3) even the concept of variable (conditional) function execution via $function_name() all combine to create some powerful scripting features.