PHP equivalent of DataTable

Can someone find out the PHP equivalent for C # datatable? I reviewed (briefly) the use of a two-dimensional array, but find it dirty. Is there any other data structure that can work for storing different types of data in a two-dimensional, row / column oriented (perhaps with headings?), Easily accessible form?

My other parameters create a DataTable structure for PHP that I would prefer to avoid, if at all possible.

+4
source share
3 answers

All PHP built-in types are much simpler.

It’s best to look at the ORM library for PHP , where this type of functionality will work if someone did it, but, of course, it will be very database oriented (like DataTable).

If all you need is rows, columns and headers, then it's simple enough to collapse your own - maybe 30 to 40 lines of code. Most likely, it will be faster to make your own, and not to find someone else.

0
source

Maybe it will be useful: Zend_DataGrid

+2
source

There are several equations. libs are available as a free / paid version. The following is a summary:

Phpgrid.org example

$g = new jqgrid(); $g->table = "clients"; $out = $g->render("list1"); 
0
source

Source: https://habr.com/ru/post/1397483/


All Articles