Skip to content

Instantly share code, notes, and snippets.

@uglyeoin
Last active December 5, 2017 23:53
Show Gist options
  • Save uglyeoin/b44fa1c96fa742cdedb97741df9b3d4a to your computer and use it in GitHub Desktop.
Save uglyeoin/b44fa1c96fa742cdedb97741df9b3d4a to your computer and use it in GitHub Desktop.
Different ways to Print_r

Params but nice columns

	echo "<pre>" . print_r($this->item->dpfields, true) . "</pre>";

Show the DP Fields array

`print_r($this->item->dpfields);

Print out all of the params being passed to the current page

`print_r($params);

Params but nice columns

	echo "<pre>" . print_r($params, true) . "</pre>";

Prints the output / returns human readable information about the variables. And by human readable...

`print_r();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment