Hello
I m not clear about class. Can anybody help me. Actually what is different between class and function. When I will use functiona and when I will use function.
arctushar 0
Junior Poster in Training
Recommended Answers
Jump to PostThe PHP Language reference has details on what a function and class is:
http://www.php.net/manual/en/langref.phpIt also explains most the other features of PHP. If want to learn PHP that is the best place …
Jump to PostOf course digital-ether answer is more accurate but to make thinks a bit simpler associate class with the object and function with the behavior of the object. To go many years back, if the object-class is a bicycle it has attributes (color, speed) and behavior (changeColor , changeSpeed), the function …
Jump to PostA function can communicate with other function passing variables and receiving from them. Just imagine if function not only passing variables to each others but being a part of a larger universe. Then they could exchange data and behavior inside their universe. You could use one function from a class …
All 10 Replies
digital-ether 399
Nearly a Posting Virtuoso Team Colleague
Zagga
commented:
You couldn't ask for a fuller explaination. Love it! +2
jkon 636
Posting Whiz in Training Featured Poster
arctushar 0
Junior Poster in Training
jkon 636
Posting Whiz in Training Featured Poster
jkon 636
Posting Whiz in Training Featured Poster
cmps 26
Light Poster
arctushar
commented:
I like this comment. this more helpful +0
diafol
arctushar 0
Junior Poster in Training
pritaeas 2,194
¯\_(ツ)_/¯ Moderator Featured Poster
fpaquin 0
Newbie Poster
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.