Posted: Tue Nov 01, 2005 11:04 am
I should have referred to it as a class property earlier... sorry about that.
If you read this and are confused just ignore it.
My old German teacher once told me that the way you remember foreign languages (also applies to programming languages) is that you develop "donkey bridges" (whatever the hell that is). A "donkey bridge" would be a silly way that you remember something. For example, she told us that to remeber how to pronounce the common "EI" and "IE" in words by this dumb phrase: "If two vowels go a walkin', the second one does the talkin'." Meaning that the second vowel is the one that you pronounce.
EI sounds like I (eye)
IE sounds like E (gee)
So.. here is my "donkey bridge" with class properties and varaibles.
----------------------------
The way I think of class properties and local variables is this:
Class properties are the end of the line, the values you want.
Variables are used to funnel the values into the properties.
An illustration:
Filling a car's oil tank up. Upper case words will be the real life thing and the [brackets] will represents PHP.
You use a FUNNEL=[variable] to fill the OIL TANK=[class property]
That's a redneck way of saying it.
Let me know how that explaination was, anybody...
If you read this and are confused just ignore it.
My old German teacher once told me that the way you remember foreign languages (also applies to programming languages) is that you develop "donkey bridges" (whatever the hell that is). A "donkey bridge" would be a silly way that you remember something. For example, she told us that to remeber how to pronounce the common "EI" and "IE" in words by this dumb phrase: "If two vowels go a walkin', the second one does the talkin'." Meaning that the second vowel is the one that you pronounce.
EI sounds like I (eye)
IE sounds like E (gee)
So.. here is my "donkey bridge" with class properties and varaibles.
----------------------------
The way I think of class properties and local variables is this:
Class properties are the end of the line, the values you want.
Variables are used to funnel the values into the properties.
An illustration:
Filling a car's oil tank up. Upper case words will be the real life thing and the [brackets] will represents PHP.
You use a FUNNEL=[variable] to fill the OIL TANK=[class property]
That's a redneck way of saying it.
Let me know how that explaination was, anybody...