I began doing some research on Paypal API code yesterday and have been lookin through a lot of the examples on the web. A lot of the examples i'm seeing seem to be heavily OOP. Ive never really tried any object oriented type of code I mainly do procedural. Can I mix procedural and OOP? or is this a bad idea and why?

Yes, you can mix it. Of course, said code will be easier to use/understand, when you understand how OOP works. That is best achieved by actually using it yourself. Personally, I am a big fan of OOP, but for small PHP scripts I think it's overkill. That may also be because I was using PHP before it was really OOP friendly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.