Title: Create table from code ?
Last modified: November 24, 2023

---

# Create table from code ?

 *  Resolved [xerviami](https://wordpress.org/support/users/xerviami/)
 * (@xerviami)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/create-table-from-code/)
 * Dear,
 * Is it possible to create tables from PHP code ?
 * Thaank you
 * Xerviami

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/create-table-from-code/#post-17235327)
 * Hello,
   Yes, with the Lite wpDataTables it is possible to create Tables in WordPress
   based on serialized PHP arrays.It is important to use the format of your PHP 
   serialized array which our Plugin will accept.The format of the serialized array
   should be the following: 2D-array, where the parent level is an indexed array,
   and the second level is an associative array. Parent array entries will be parsed
   as rows, child array keys will be parsed as column headers, and child array values
   as cell values.Please check more details on how it works on this [Documentation](https://wpdatatables.com/documentation/creating-wpdatatables/creating-wpdatatables-from-serialized-php-array/).
   Let us know if you have any further questions.Kind regards.

Viewing 1 replies (of 1 total)

The topic ‘Create table from code ?’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/create-table-from-code/#post-17235327)
 * Status: resolved