0

Are parameters the same as arguments in PHP?

HELP
  • 14,237
  • 22
  • 66
  • 100
  • There are at least two non-closed, language-agnostic versions of this question: http://stackoverflow.com/questions/3176310/difference-between-parameter-and-argument and http://stackoverflow.com/questions/427653/arguments-or-parameters – Pops Apr 19 '11 at 19:12
  • Related: http://stackoverflow.com/questions/156767/whats-the-difference-between-an-argument-and-a-parameter – Mechanical snail Aug 21 '12 at 01:35

1 Answers1

6

Sort of. The parameter is the definition of what you pass to the function. Think of the argument as the actual value or object that you pass.

David
  • 2,782
  • 4
  • 31
  • 47