functions vs classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Novice PHPer, and i am wondering why one would use a function instead of a class (or object)? They seem to server very similar in use.

The way I see it, is a function if for repeated use in a project specific manner, where as a class could be used for many projects.

is this correct?

Although one could just include the function library in multiple projects.

Thanks!

Dustin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux