<div id="users" class="tab-pane fade"> <div class="table-responsive"> <table class="table table-hover"> <thead> <tr> <th>Registered Date</th> <th>Name</th> <th>Type</th> <th>E-mail</th> <th>Actions</th> </tr> </thead> <tbody id="items"> <?php foreach ($userArray as $usr) { $userinfo = $admin->getUserByRoleAndName($usr['username'], $usr['role']); ?> <tr> <td><?php echo date('m-d-Y', strtotime($userinfo['registration_date'])); ?> </td> <td><?php echo $usr['username']; ?> </td> <td><?php echo $usr['role']; ?> </td> <td><?php