Yes, sets of functions can be very portable, and yes, I do use some files with just functions in them. I like that properties inside classes can be passed from method to method without regard for scoping issues, but this is more of a convenience than anything else. As I mentioned before, I was using functions very heavily before learning OOP. I have a core file that I use in most pages that has certain core classes I use over and over, along with me __autoload() function. This allows me to quickly bring up new projects, rather than spending a lot of time re-writing. Portability is where it is at. I also have some files that are sets of functions which I can use with a lot of projects. I use a lot of functions in developing new code. For example, I use a function that formats and prints the output of a print_r() function to make sure arrays are producing the expected values. I will temporarily write in calls to this function for testing and then delete them when I know my code is working correctly. Gentlemike2 -----Original Message----- From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx]On Behalf Of Pete Sent: Sunday, March 21, 2010 6:39 AM To: php-objects@xxxxxxxxxxxxxxx Subject: Re: OOP & OOP Books In message <HKEALLGMHHNBDLKCMMLPGEPMCBAA.gentlemike2@xxxxxxxxxxx>, MLC <gentlemike2@xxxxxxxxxxx> writes >The greatest advantage of OOP in my mind is portability. Any OOP code >writer will have a library of classes he/she uses either to use as they are, >or as the basis for extension classes. This almost always makes projects >come together quicker. The encapsulation OOP offers improves security, >which I think is a great benefit also. Do you not think that a set of functions when correctly written, can also give portability? I tend to keep a "functions.php" for simpler stuff, and various OOPs for items which are more complicated. So, "convert kilometres to miles" goes in functions, and sending emails with loads of options, are in OOP files > From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx]On >Behalf Of markwatling@xxxxxxxxx >(Please send responses direct to me & not to the list) > > Mark My personal preference is to see all responses on the list - after all, that's what the list is for, isn't it? -- Pete Clark Hot Costa - Local Spain http://www.hotcosta.com [Non-text portions of this message have been removed]