$data = [
[
'id'=>1,
'name'=>'John Doe',
'email'=>'[email protected]',
'age'=>23,
'sex'=>'M'
],[
'id'=>2,
'name'=>'Jane Doe',
'email'=>'[email protected]',
'age'=>24,
'sex'=>'F'
],[
'id'=>3,
'name'=>'Jimmy Doe',
'email'=>'[email protected]',
'age'=>21,
'sex'=>'M'
],[
'id'=>4,
'name'=>'Jessy Doe',
'email'=>'[email protected]',
'age'=>26,
'sex'=>'F'
],[
'id'=>5,
'name'=>'Jack Doe',
'email'=>'[email protected]',
'age'=>27,
'sex'=>'M'
],[
'id'=>6,
'name'=>'Jason Doe',
'email'=>'[email protected]',
'age'=>28,
'sex'=>'M'
],[
'id'=>7,
'name'=>'John Wick',
'email'=>'[email protected]',
'age'=>26,
'sex'=>'M'
]
];
<?php
/**
* @package data_table
*/
/*
Plugin Name: Data table
Plugin URI: https://ptc.com/
Description: Data table plugin is a light weight for count words.
Version: 1.0
Requires at least: 1.0
Requires PHP: 5.2
Author: HemalRika(HR) Foundation
Author URI: https://hemalrika-hr.com
License: GPLv2 or later
Text Domain: data_table
*/
include_once "dataset.php";
require_once "class.persons-table.php";
function datatable_admin_menu() {
// create a menu on admin page
add_menu_page("Data Table", "Data Table", "manage_options", "datatable", "datatable_display_func");
}
add_action("admin_menu", "datatable_admin_menu");
function datatable_display_func() {
echo "Hello world";
}