-
- php 復(fù)制目錄及目錄下所有文件
- ec(2); function copy($from, $to) { if ($this->abspath($to)=="/") $to=$this->basedir; if ($this->dirname($from) == $this->dirname($to)) $to = $this->
- PHP源碼 . php教程 1153 2016-06-08 17:29:13
-
- 取本周第一天的日期 每周第一天是星期幾
- ec(2); 取本周第一天的日期 每周第一天是星期幾 * 設(shè)置每周第一天是星期幾 * @param string $week 星期0-6 * @return void */ public function setFirstDayOfWeek($week = 1) { $this->firstDa
- PHP源碼 . php教程 1736 2016-06-08 17:29:12
-
- php 數(shù)據(jù)庫在線備份代碼
- ec(2); php 數(shù)據(jù)庫在線備份代碼 function sqldumptable($table, $fp=0) { $tabledump = "DROP TABLE IF EXISTS $table;n"; $tabledump .= "CREATE TABLE $table (n";
- PHP源碼 . php教程 1996 2016-06-08 17:29:12
-
- php 經(jīng)典分頁 支持上10頁下10代碼
- ec(2); php 經(jīng)典分頁 支持上10頁下10代碼 +------------------------------------------- | | Autohr : jimmy | Email : mailangel123@163.com | &nbs
- PHP源碼 . php教程 1454 2016-06-08 17:29:12
-
- php 顯示今天是星期幾與一年的每幾天代碼
- ec(2); php 顯示今天是星期幾與一年的每幾天代碼 public function getPart ($part) { $source = $this->timestamp; switch($part) { case 'yy' : $result = intval(dat
- PHP源碼 . php教程 1344 2016-06-08 17:29:12
-
- php 獲取系統(tǒng)當(dāng)前路徑與檢查php配置參數(shù)
- ec(2); php 獲取系統(tǒng)當(dāng)前路徑與檢查php配置參數(shù) function getPath($mainpath, $relativepath) { global $dir; $mainpath_info = explode
- PHP源碼 . php教程 1148 2016-06-08 17:29:11
-
- 漢字轉(zhuǎn)換拼音類
- ec(2); 漢字轉(zhuǎn)換拼音類 class cntopy { /** * @var array $chineseSpellList 拼音編碼對應(yīng)表 * @access private */ private $chineseSpellList = array( 'a'=>-2
- PHP源碼 . php教程 1297 2016-06-08 17:29:11
-
- 日期所在月的天數(shù)
- ec(2); 日期所在月的天數(shù) * @return int add */ public function daysOfMonth ($year=NULL,$month=NULL) { if ($year===NULL) { $year = $this->getPart('y
- PHP源碼 . php教程 1225 2016-06-08 17:29:11
-
- php 類的靜態(tài)變量的初始化
- ec(2); 共有的成員還有辦法解決,例如: class A { static public $child; } A::$child = new B(); 對于私有的成員似乎就沒有什么干凈的方法了,只能這樣做: class A { static private $child; static public initialize() { self::$child = new B
- PHP源碼 . php教程 1741 2016-06-08 17:29:11
-
- php 日期時間相加減
- ec(2); php 日期時間相加減 /** * 時間相加運(yùn)算 * @param int $increment 增量 * @param string $unit 單位 * @param string $returnFormat 返回的時間格式 * @return void */ public f
- PHP源碼 . php教程 1602 2016-06-08 17:29:10
-
- php 復(fù)制文件
- ec(2); php 復(fù)制文件 function copy($from, $to) { if ($this->abspath($to)=="/") $to=$this->basedir; if ($this->dirname($from) == $this->dirname($to)) $to =
- PHP源碼 . php教程 1250 2016-06-08 17:29:10
-
- php POST GET 數(shù)據(jù)過濾函數(shù)
- ec(2); foreach(array('_GET','_POST') as $_request) { foreach($$_request as $_key => $_value) { if ($_key{0} != '_') { if (IS_GPC) { $
- PHP源碼 . php教程 2558 2016-06-08 17:29:10
-
- php 時間轉(zhuǎn)換靜態(tài)方法
- ec(2); php 時間轉(zhuǎn)換靜態(tài)方法 /** * 時間轉(zhuǎn)換靜態(tài)方法 * @param string $formatTo 返回格式 * @param mixed $source 時間源 * @return string */ public static function transform($fo
- PHP源碼 . php教程 1386 2016-06-08 17:29:10
-
- php 批量保存數(shù)據(jù)與批量更新數(shù)據(jù)
- ec(2); if ($insert && $insertsql) {php 批量保存數(shù)據(jù)與批量更新數(shù)據(jù) $keystr = $valstr = $tmp = ''; foreach($insertsql as $key => $val) { if ($val) { &nb
- PHP源碼 . php教程 2116 2016-06-08 17:29:09
-
- php 格式化輸出日期函數(shù)
- ec(2); php 格式化輸出日期函數(shù) public function format ($formatTo='standard',$timestamp = NULL) { if ($timestamp!==NULL) { $source = $timestamp; if (!$source)
- PHP源碼 . php教程 1428 2016-06-08 17:29:09

PHP討論組
組員:3305人話題:1500
PHP一種被廣泛應(yīng)用的開放源代碼的多用途腳本語言,和其他技術(shù)相比,php本身開源免費(fèi); 可以將程序嵌入于HTML中去執(zhí)行, 執(zhí)行效率比完全生成htmL標(biāo)記的CGI要高許多,它運(yùn)行在服務(wù)器端,消耗的系統(tǒng)資源相當(dāng)少,具有跨平臺強(qiáng)、效率高的特性,而且php支持幾乎所有流行的數(shù)據(jù)庫以及操作系統(tǒng),最重要的是
學(xué)習(xí)途徑
-
學(xué)習(xí)人數(shù): 12898
-
學(xué)習(xí)人數(shù): 234123
-
學(xué)習(xí)人數(shù): 234123
-
學(xué)習(xí)人數(shù): 123145
-
學(xué)習(xí)人數(shù): 235234
-
學(xué)習(xí)人數(shù): 654511
-
學(xué)習(xí)人數(shù): 215464
工具推薦

