And so you can, in code now, say, put a variable name inside here.
And then put a variable score inside there.
And it does it, it sort of [SOUND] opens it up and puts these variables in and
assigns some data into them.
They're kind of by definition, at this point,
public because we're outside the class and we're putting data in.
But you can do that and so don't, some languages you have to predefine
the class and have everything defined in a class-like thing.
But in PHP, you just kind of extend it, and you can do all kinds of things.
I basically created an access to public variables there.
And so this basically is a standard class with key and value.
It's not an array, but it's still kind of showing you the attribute name, name, and
score.
And in a print_r statement.
But sort of a more elegant way to do this would be to make a class which
is then a template.
That says there are two things in players in general, a name and a score, and
you can set it to some value.
And you can say new player which creates now,
right off the bat, a class, an object with two things in it, with names.
And then you can, add one to the score.
And if you print it out, you see that this is the object that we defined, so
it knows that that's a different thing than a standard class.
This was a standard class when we first created it, but it's a pattern.
If you see this code, I don't want you to freak out when you see that code.
because that's how some of us old school people made objects in the first place.
We kind of treated them