Jump to content

Creating PHP Class


ZulfadlyAshBurn

Recommended Posts

Most people coming from another programming language like using the class format of php, predefined programming in php can also be fast.

 

Both can be written, to do the same thing, in a class format or predefined format.

 

Predefined programming for a absolute beginner, is easer to understand.

 

Saying that each individual are different at there ability to program php code.

 

example

I might be good at class never programmed in my life.

 

Try them both is the an saw.

 

Saying even that, Your have to learn all the php commands and there all predefined as examples any way.

 

 

Most programmers use the php.net manual daily,hourly, to learn examples  of php and unfortunately you get the examples in predefined examples from php.net.

 

i personally only use a class when selling a project , only for simplicity only ((not speed or tidiness)).

Link to comment
Share on other sites

I think the word you're looking for is procedural, not predefined.

 

To the OP, safer how?  Both OOP and procedural programming can be messy and unsafe if written badly.  Simply creating classes and objects 'just because' doesn't convey any real benefit.  OOP done right promotes reusability and modularity, but getting to that point requires more than learning syntax.

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.