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
https://forums.phpfreaks.com/topic/138993-php-question/#findComment-726950
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
https://forums.phpfreaks.com/topic/138993-php-question/#findComment-727150
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
https://forums.phpfreaks.com/topic/138993-php-question/#findComment-727167
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
https://forums.phpfreaks.com/topic/138993-php-question/#findComment-727453
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.