0

Php functions over php classes

What is important of php functions over php classes

3rd Feb 2017, 4:20 AM
Petro Jackson
Petro Jackson - avatar
2 ответов
0
Functions are for single use at a time, process some information and return the result. A class is for having a collection of information and functions and have multiple instances of those collections. This is not just for PHP but for all object oriented enabled languages.
3rd Mar 2017, 8:42 PM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar
0
Class is collection of data information and functions, function is just a function .
28th Jul 2020, 3:34 PM
Damir Čičić