Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 314593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:12:50+00:00 2026-05-12T08:12:50+00:00

Is there a de-facto standard library for creating ASCII tables in PHP? I want

  • 0

Is there a de-facto standard library for creating ASCII “tables” in PHP?

I want some PHP code that, when handed an array or other data structure will output tables that look something like the mysql command line client’s results

+--------+---------------------+----------------------------------+
| fld_id | fld_name            | fld_email                        |
+--------+---------------------+----------------------------------+
|      1 | A value             | another value                    | 
|      2 | A value             |                                  | 
|      3 | A value             | another value                    | 
+--------+---------------------+----------------------------------+

Not rocket science, or even computer science, but certainly tedious science that someone’s already solved.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T08:12:51+00:00Added an answer on May 12, 2026 at 8:12 am

    While it’s not the defacto standard, the Zend_Text_Table component of the Zend Framework does exactly this.

    It has the added bonus of being highly configurable and modular; for example it affords you control over all sorts of formatting details. Also, it adheres to strict OOP principals, if that matters to you.

    While the fact that it is part of a larger library may be intimidating, the component is fairly decoupled, the only dependency I can see is on the Zend_Loader_PluginLoader, for its pluggable rendering engine.

    Most importantly, it fully supports UTF-8.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For the c++ STL, there is a de-facto standard location (besides the de-jour standard
Other than the fact that PNG is a more common image format, is there
There is a column that exists in 2 tables. In table 1, this column
In some other technologies we occasionally used a log level below DEBUG that I
I use some libraries that I don't want built as part of every project
I'm aware of the fact that the containers from standard library are not thread-safe.
I have a plain javascript code that does not rely on external library. But
Does anyone know if there's a de-facto standard (i.e., TR1 or Boost) C++ function
The socket API is the de-facto standard for TCP/IP and UDP/IP communications (that is,
I wonder if there is an implementation of IDictionary interface in the standard library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.