jlockley
you may be getting yourself turned around.
you are right that most explanations on this board are written by people who have some knowledge. But we do not write them for people who are clueless. They are designed for people with at least basic IT knowledge. not necessarily enough to understand the explanation off the bat, but enough to take that info and drill down into it until they hit a blocking point (at which point they follow up with another question or go investigate themselves).
This board is different to others in that membership is only open to IT Professionals. Whilst there is no hard definition of this term, loosely speaking my paragraph above describes how I understand the term.
to understand the $this construct you need first to understand classes. There is no point in trying to get to grips with classes and objects until you have first got the building blocks of the language under your belt. For this I would start by investigating the language in this order. Do this by reading the php manual and using a code editor to try things out yourself. tutorials may help you later, now it's time to read and do things yourself.
1. the types of construct in php (variables, constants, functions, 'keywords').
2. php is a loosely typed language (after point 1 you will know what this means); but arrays are not simple variables. go learn a lot about arrays. you will use them the whole time. really learn about comparison operators and the difference between =, == and ===
3. learn about keeping code that you want to reuse inside functions. learn how to use a function: when to have the function 'do' something and when to have it return a piece of processed information for you to use elsewhere.
4. learn about the difference between procedural code and object code. Don't necessarily try to handle objects yet, just learn that the difference exists, how to recognise it and what the relative advantages and disadvantages are.
5. learn about how php can communicate with external sources - such as files, universal resources, databases, query strings, html forms.
6. try writing a small application now. perhaps a login manager. this will test your ability to use comparison operators, external data sources and reusable code snips in functions.
7. once you've done 6, search these forums for login managers and compare the code we have published in the past with yours. analyse where yours is better and where it is deficient.
8. now is the time to tackle objects. read the php manual on classes and objects really carefully a few times. they are 'new things' to people who grew up in Basic, VB and other procedural languages. the concepts of encapsulation and inheritance are really important to understand.
9. try rewriting your login manager as an object.