function drush_print_r

8.0.x output.inc drush_print_r($array, $handle = NULL, $newline = TRUE)
6.x output.inc drush_print_r($array, $handle = NULL, $newline = TRUE)
7.x output.inc drush_print_r($array, $handle = NULL, $newline = TRUE)
3.x drush.inc drush_print_r($array)
4.x drush.inc drush_print_r($array, $handle = NULL)
5.x output.inc drush_print_r($array, $handle = NULL, $newline = TRUE)
master output.inc drush_print_r($array, $handle = NULL, $newline = TRUE)

Prints an array or string.

Parameters

$array: The array to print.

$newline: Add a "\n" to the end of the output. Defaults to TRUE.

Related topics

2 calls to drush_print_r()
drush_pipe_output in includes/drush.inc
Display the pipe output for the current request.
scratch.php in commands/core/scratch.php
Use this file as a php scratchpad for your Drupal site. You might want to load a node, change it, and call node_save($node), for example. If you have used the Execute PHP feature of devel.module, this is the drush equivalent.

File

includes/output.inc, line 73

Code

function drush_print_r($array, $handle = NULL, $newline = TRUE) {
  drush_print(print_r($array, TRUE), 0, $handle, $newline);
}