kickeru Posted September 23, 2009 Share Posted September 23, 2009 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? Quote Link to comment Share on other sites More sharing options...
ILMV Posted September 23, 2009 Share Posted September 23, 2009 This is a total punt, but does a function return an value and a method doesn't? Quote Link to comment Share on other sites More sharing options...
trq Posted September 23, 2009 Share Posted September 23, 2009 Methods are functions belonging to (and contained within a class). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.