PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar  >  Eazy PHP HTML Table Generator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Eazy PHP HTML Table Generator
Output HTML to display tables from array data
Author: By
Last change:
Date: 4 months ago
Size: 347 bytes
 

Contents

Class file image Download
<html>
<head>
    <title>Eazy Table Example</title>
</head>
<body>
<?php

require_once 'table.php';

$tbl=new Table;


$table=[
   
'header'=>['ID', 'Name', 'Department'],
   
'data'=>[
        [
2, 'Nahid', 'CSE'],
        [
3, 'Firoz', 'CSE'],
        [
4, 'Jannat', 'BBA'],
        [
5, 'Bijoy', 'CSE']
    ]
];





$tbl->make($table, ['border'=>1,'width'=>200]);

?>
</body>
</html>