src/Robo/Common/IO.php
protected function printArrayAsTable(
    array $array,
    array $headers = ['Property', 'Value']
  ) {
    $table = new Table($this->output);
    $table->setHeaders($headers)
      ->setRows(ArrayManipulator::convertArrayToFlatTextArray($array))
      ->render();
  }
protected function printArrayAsTable(
    array $array,
    array $headers = ['Property', 'Value']
  ) {
    $table = new Table($this->output);
    $table->setHeaders($headers)
      ->setRows(ArrayManipulator::convertArrayToFlatTextArray($array))
      ->render();
  }
protected function printArrayAsTable ( array $ array , array $ headers = [ 'Property' , 'Value' ] ) { $ table = new Table ( $ this -> output ) ; $ table -> setHeaders ( $ headers ) -> setRows ( ArrayManipulator :: convertArrayToFlatTextArray ( $ array ) ) -> render ( ) ; }
Writes an array to the screen as a formatted table.

@param array $array
The unformatted array.
@param array $headers
The headers for the array. Defaults to ['Property','Value'].
Writes an array to the screen as a formatted table .