Jump to content

Mastering PHP Class.


Guest askjames01

Recommended Posts

Guest askjames01
ok php geeks and php gurus

I'm now ready to master PHP Class although i already know the basic concept..
But what i want to do is to master and review it. So my skills will be
surely sharpen with advance PHP coding....

can you help me and show a good tutorial URLs from PHP Class basic to advance PHP Class coding...
The more CLASS coding samples the better...


thank you very much in advance...



-/james/
Link to comment
Share on other sites

Guest askjames01
I may be some how answer my question a little bit.
with this --> [a href=\"http://www.zend.com/zend/tut/class-intro.php\" target=\"_blank\"]http://www.zend.com/zend/tut/class-intro.php[/a]

But what i'm looking for is a more advance PHP CLASS coding...
specially on large projects i want to know more...


Link to comment
Share on other sites

what are you trying to learn? You have to read or take a course in programming. Do you have ANY programming knowledge? PHP is just another language which for the most part just boils down to different syntax. PHP is actually very easy, you don't even have to declare variable type (eg String, INT, double, bool, etc). If you are referring to classes as OOP you need to really study up on what a class is and the basics of programming. A class defines an object and its characteristics and allows you to write methods for manipulating that object(s). You can create an instance of that object in your program or script. Zend has some good tutorials for a starting point as you've noted so start reading and practicing.

edit:

you can think of a class like this. An object might be a person, so you create a class to define what a person is.

name
race
hair color
eye color
etc.

you can then create an instance of a person. Saying $myperson = new Person(). You can construct the instance of a new person.

I can then work with my object $myperson.

Say I want give my person a name

$myperson->setName(Jeff); This would be a set method in my class that allows me to give the person a name.

Anyway, this is by no means in any detail, but an idea of what a class represents.
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.