Function Virtual_shell->_array_to_text

Definitions

sources/commandr.php

  • Convert an array to text for display.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$array array No No required parameter N/A N/A Array to display
$indentation integer No No 0 N/A N/A Global indentation

Returns

  • Text representation of array
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert an array to text for display.
 *
 * @param  array $array Array to display
 * @param  integer $indentation Global indentation
 * @return string Text representation of array
 */

protected function _array_to_text(array $array, int $indentation = 0) : string