-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebugArray.php
33 lines (32 loc) · 874 Bytes
/
debugArray.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
// if(!isset($_SESSION)) session_start();
// require_once ("dao.php");
// $user_id = $_SESSION["userid"];
//
// function array_orderby() {
// $args = func_get_args();
// $data = array_shift($args);
// foreach ($args as $n => $field) {
// if (is_string($field)) {
// $tmp = array();
// foreach ($data as $key => $row)
// $tmp[$key] = $row[$field];
// $args[$n] = $tmp;
// }
// }
// $args[] = &$data;
// call_user_func_array('array_multisort', $args);
// return array_pop($args);
// }
//
// $dao = new Dao();
// $proj_rows = $dao->getProjects($user_id);
//
// $sorted_rows = array_orderby($proj_rows, 'row', SORT_ASC, 'id', SORT_ASC);
foreach($sorted_rows as $row){ ?>
<pre>
<?=$dao->getRowCount($user_id); ?>
<?php print_r($row); ?>
</pre>
<?php }
?>