PHP Classes

StringGrid: Display information in plain text tables

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 542 All time: 5,559 This week: 119Up
Version License PHP version Categories
stringgrid 0.1GNU General Publi...3.0Text processing


This class can be used to present information tables rendered with plain text characters.

It takes a bi-dimensional array of data and generates text that renders the data in a table aligning rows and columns.

The layout can be configure with additional information that specified details like the limit width of each column, vertical and horizontal alignment of the cells of each column, the characters used to separate rows, columns and line breaks.

Innovation Award
PHP Programming Innovation award nominee
July 2007
Number 10

Prize: One subscription to the PDF edition of the magazine by PHP Architect
Tables are useful for displaying information in cells that must be aligned with other cells simultaneously in the horizontal and vertical directions.

Tables are supported directly by HTML. However, if you need to render tables in plain text the solution is more complicated.

This package can render tables in plain text. It can be useful for displaying table formatted information, for instance to generate text e-mail newsletters.

Manuel Lemos
Picture of Jochen Preusche
Name: Jochen Preusche <contact>
Classes: 1 package by
Country: Germany Germany
Age: 44
All time rank: 3180182 in Germany Germany
Week rank: 654 Up20 in Germany Germany Up
Innovation award
Innovation award
Nominee: 1x

  • output
  • stringGrid.png
  Files folder image Files  
File Role Description
Plain text file example2.php Example example #2
Plain text file example1.php Example example #1
Plain text file class.stringGrid.php Class StringGrid class package

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,559
This week:119Up