hi,
in php is there a difference between a function and a method?
i know in java they are called methods and in c++ called functions.
in php i saw both terms used.
i was wondering are they just synonyms or does each have a slightly different meaning?
functions vs methods
Moderator: General Moderators
-
Mark Baker
- Forum Regular
- Posts: 710
- Joined: Thu Oct 30, 2008 6:24 pm
Re: functions vs methods
A method is a function that is encapsulated within a class