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.

Related topics

5 calls to drush_print_r()
drush_cache_get in commands/core/cache.drush.inc
Print an object returned from the cache.
drush_pipe_output in includes/drush.inc
Display the pipe output for the current request.
drush_sql_conf in commands/sql/sql.drush.inc
Command callback. Displays the Drupal site's database connection string.
scratch.php in commands/core/scratch.php
_drush_user_print_info in commands/user/user.drush.inc
Print information about a given uid

File

includes/drush.inc, line 621
The drush API implementation and helpers.

Code

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