Skip to content

Instantly share code, notes, and snippets.

@nathansh
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathansh/0d7f4ee0bc78128927d6 to your computer and use it in GitHub Desktop.
Save nathansh/0d7f4ee0bc78128927d6 to your computer and use it in GitHub Desktop.
Basic docblock example with associative array
/**
* Used to print a list of shows in feed format
*
* <code>
* $args = array(
* 'count' => 6, // int
* 'exclude_featured' => false,
* 'exclude_past' => true, // bool
* 'exclude_future' => false, // bool
* 'genre' => false, // show genres to include
* 'exclude' => false // array of post ID's to exclude
* );
* </code>
*
* @param array $args Associative array of arguments
* @return string HTML for show feed
*
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment