Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-02-2009, 08:14 PM   PM User | #1
tokio
New Coder

 
Join Date: Jun 2008
Location: Jupiter
Posts: 49
Thanks: 8
Thanked 0 Times in 0 Posts
tokio is an unknown quantity at this point
Difference between a class and function?

Sorry, meant difference between a method and a function!


Is the only difference between them is that methods are usually associated with classes in higher programming languages? Trying to get my head around all of this terminology first, thanks.

Last edited by tokio; 05-02-2009 at 08:24 PM.. Reason: incorrect title
tokio is offline   Reply With Quote
Old 05-02-2009, 08:25 PM   PM User | #2
Iszak
Regular Coder

 
Iszak's Avatar
 
Join Date: Jun 2007
Location: Perth, Western Australia
Posts: 332
Thanks: 2
Thanked 58 Times in 57 Posts
Iszak is an unknown quantity at this point
Methods are functions inside classes and is associated with Object Orientated Programming where as functions aren't in a class and are associated with procedural coding.
Iszak is offline   Reply With Quote
Users who have thanked Iszak for this post:
tokio (05-03-2009)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:44 PM.


Advertisement
Log in to turn off these ads.