Difference Between An Argument & A Parameter

There’s different opinions on this subject, here’s mine.

My opinion is based on how i understand PHP code and how i write and use it.

Argument or $args

Generally, a argument is the combination of a parameter and a value like this:

posts_per_page => '5'

Where posts_per_page is the parameter or key, 5 is the value and the combination is the argument or 1 of the $args.

Parameter

The parameter in this case is:

posts_per_page

Was This Tutorial Helpful?

Free

$0

Access only to all free tutorials per month.



Monthly

$75

Access to 10 premium tutorials per month.


Tutorial Request


Includes code guarantee and coding support.

Yearly

$500

Access to 15 premium tutorials per month.


Monthly Tutorial Request


Includes code guarantee and priority coding support.