IT Community - Software Programming, Web Development and Technical Support

Argument vs Parameter

This is a discussion on Argument vs Parameter within the PHP Programming forums, part of the Web Development category; I was writing a tutorial earlier and I said something I wasnt sure of but it didnt make a big ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 02-24-2007, 12:46 AM
pranky pranky is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 51
pranky is on a distinguished road
Default Argument vs Parameter

I was writing a tutorial earlier and I said something I wasnt sure of but it didnt make a big difference...

Code:
PHP Code:
<?php
function EmailValidation($email) { 
    //function code
}
?>
In this case is $email and argument or a parameter
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-10-2007, 07:39 AM
Sabari Sabari is offline
D-Web Genius
 
Join Date: Jul 2007
Posts: 1,008
Sabari is on a distinguished road
Default Re: Argument vs Parameter

In everyday usage, “parameter” and “argument” are used interchangeably to refer to the things that you use to define and call methods or functions.

Often this interchangeability doesn’t cause ambiguity. It should be noted, though, that conventionally, they refer to different things.

A “parameter” is the thing used to define a method or function while an “argument” is the thing you use to call a method or function.

Parameter:
def foo(param) ... end

Argument:
foo(arg) # => obj

Ultimately, it doesn’t really matter what you say. People will understand from the context.
__________________
Thanks & Regards
Sabari...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get out parameter of stored procedure ? Murali PHP Programming 0 12-16-2007 04:57 AM
Difference Between an Argument and a Parameter Pvinothkumar HTML, CSS and Javascript Coding Techniques 1 10-18-2007 12:05 AM
Difference between a Return parameter and an OUTPUT parameter? KiruthikaSambandam ASP and ASP.NET Programming 1 08-25-2007 02:25 AM
How can I send parameter value for Reporting service? H2o Database Support 2 07-19-2007 01:11 AM


All times are GMT -7. The time now is 02:56 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0