Jump to content

php question


Sanjib Sinha

Recommended Posts

They usually intertwine with each other.

 

Object Oriented (which PHP is working to be more centered towards). Uses classes to house objects and functions to manipulate those objects. www.php.net/oop  should go more in depth on PHP OOP.

 

From what I know about procedural, is that is just writing the code for to just run, this is how most scripts are done and works great in PHP. If you are using PHP 4, I would stick to procedural over OOP, if 5+ I would go more towards the OOP.

 

I could be wrong on my thinking of procedural, its been a while since I was in a class with the definitions but to answer your question, yes you can relate the two, PHP works just fine intermingling.

Link to comment
Share on other sites

They usually intertwine with each other.

 

Object Oriented (which PHP is working to be more centered towards). Uses classes to house objects and functions to manipulate those objects. www.php.net/oop  should go more in depth on PHP OOP.

 

From what I know about procedural, is that is just writing the code for to just run, this is how most scripts are done and works great in PHP. If you are using PHP 4, I would stick to procedural over OOP, if 5+ I would go more towards the OOP.

 

I could be wrong on my thinking of procedural, its been a while since I was in a class with the definitions but to answer your question, yes you can relate the two, PHP works just fine intermingling.

 

So the future is OOP?

Link to comment
Share on other sites

They usually intertwine with each other.

 

Object Oriented (which PHP is working to be more centered towards). Uses classes to house objects and functions to manipulate those objects. www.php.net/oop   should go more in depth on PHP OOP.

 

From what I know about procedural, is that is just writing the code for to just run, this is how most scripts are done and works great in PHP. If you are using PHP 4, I would stick to procedural over OOP, if 5+ I would go more towards the OOP.

 

I could be wrong on my thinking of procedural, its been a while since I was in a class with the definitions but to answer your question, yes you can relate the two, PHP works just fine intermingling.

 

So the future is OOP?

 

I wouldn't say that exactly. I am sure PHP will let you work with it like it always has. OOP just makes certain tasks etc more efficient. It all depends on the script you are working on whether OOP would be the way to go or not.

Link to comment
Share on other sites

They usually intertwine with each other.

 

Object Oriented (which PHP is working to be more centered towards). Uses classes to house objects and functions to manipulate those objects. www.php.net/oop  should go more in depth on PHP OOP.

 

From what I know about procedural, is that is just writing the code for to just run, this is how most scripts are done and works great in PHP. If you are using PHP 4, I would stick to procedural over OOP, if 5+ I would go more towards the OOP.

 

I could be wrong on my thinking of procedural, its been a while since I was in a class with the definitions but to answer your question, yes you can relate the two, PHP works just fine intermingling.

 

So the future is OOP?

 

I wouldn't say that exactly. I am sure PHP will let you work with it like it always has. OOP just makes certain tasks etc more efficient. It all depends on the script you are working on whether OOP would be the way to go or not.

 

Thanks you. I got my answer. I have to learn the procedural basic soundly.

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.