Jump to content

Understanding PHP Classes


soma56

Recommended Posts

Let's see....

 

You add values to variables but you can declare them before assigning a value...

Loops are great - they do things until a specific criteria is met....then I exit or break out of them.

Functions are code that do specific tasks (or series of tasks) & can be called upon at any given time during a script. 

An array is like a....hotel with many different rooms - each room being a different value.

I get GET and POST...and know how to use them between pages.

Sessions can be used to pass data between pages - they help to keep track of things....

Cookies are like little signatures from your script that you can give to a users browser for any number of reasons. 

 

I guess you could say I'm starting to get it. It's only been 4 months.

 

That being said can someone give me a brief and yet simple summary of what a PHP Class is...

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.