Forum Moderators: coopster

Message Too Old, No Replies

using object oriented functions in a non object script

is there a danger to that

         

Baruch Menachem

1:48 am on Oct 27, 2009 (gmt 0)

10+ Year Member



I can't get my head around object oriented stuff. I got a nice object GNU license function/ script I want to use as an include in my non object script. Can I do that?

Zipper

1:58 am on Oct 27, 2009 (gmt 0)

10+ Year Member



It's extremely hard to build an application in PHP that is purely object oriented, so it's only natural to mix up both. As for using it, just include the class, initiate the object defined by the class and use the methods just like any other functions.

If you have not dealt with OOP before, you should google some basics, at least in a PHP context.