• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2784

Original Genesis Tutorials & 6000+ Guaranteed Code

Snippets

  • Consultation
  • Full Access
  • Log in

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

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags