09 2011 档案

摘要:$a = '/a/b/c/d/e.php'; $b = '/a/b/12/34/c.php'; function getRelativePath($a, $b) { $returnPath = array(dirname($b)); $arrA = explode('/', $... 阅读全文
posted @ 2011-09-21 14:17 末世 阅读(114) 评论(0) 推荐(0)
摘要:function traverse_scandir($dir) { $files = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file !="..") { ... 阅读全文
posted @ 2011-09-21 11:40 末世 阅读(114) 评论(0) 推荐(0)
摘要:function direct_sort($data) { $count = count($data); if($count == 0) return; elseif($count == 1) return $data; for($i = 0; $i $data[$j]) { $temp =... 阅读全文
posted @ 2011-09-20 17:19 末世 阅读(102) 评论(0) 推荐(0)