Subversion Repositories php-qbpwcf

Rev

Rev 123 | Rev 226 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 123 Rev 219
Line 143... Line 143...
143
#...
143
#...
144
#回傳結果:
144
#回傳結果:
145
#$result["status"],"true"代表移除成功,"false"代表移除失敗.
145
#$result["status"],"true"代表移除成功,"false"代表移除失敗.
146
#$result["error"],錯誤訊息陣列.
146
#$result["error"],錯誤訊息陣列.
147
#$result["function"],當前執行的函數名稱.
147
#$result["function"],當前執行的函數名稱.
-
 
148
#$result["argu"],使用的參數.
148
#$result["content"],主要期望的回傳內容.
149
#$result["content"],主要期望的回傳內容.
149
#必填參數:
150
#必填參數:
150
#$conf["key"],字串,名為"key"的參數.
151
#$conf["key"],字串,名為"key"的參數.
151
$conf["key"]="";
152
$conf["key"]="";
152
#$conf["fileArgu"],字串,__FILE__的內容.
153
#$conf["fileArgu"],字串,__FILE__的內容.
Line 226... Line 227...
226
	
227
	
227
	}//function haveArgu end
228
	}//function haveArgu end
228
 
229
 
229
建立不含有必填參數的涵式一開始的寫法可以如下:
230
建立不含有必填參數的涵式一開始的寫法可以如下:
230
 
231
 
-
 
232
/*
-
 
233
#函式說明:
-
 
234
#...
-
 
235
#回傳結果:
-
 
236
#$result["status"],"true"代表移除成功,"false"代表移除失敗.
-
 
237
#$result["error"],錯誤訊息陣列.
-
 
238
#$result["function"],當前執行的函數名稱.
-
 
239
#$result["argu"],使用的參數.
-
 
240
#$result["content"],主要期望的回傳內容.
-
 
241
#必填參數:
-
 
242
#無.
-
 
243
#可省略參數:
-
 
244
#$conf["key"],字串,名為"key"的參數,預設為"index".
-
 
245
#$conf["key"]="index";
-
 
246
#$conf["fileArgu"],字串,__FILE__的內容,預設為__FILE__.
-
 
247
#$conf["fileArgu"]=__FILE__;
-
 
248
#參考資料:
-
 
249
#無.
-
 
250
#備註:
-
 
251
#無
-
 
252
*/
231
function noMustFilledArgu(&$conf){
253
function noMustFilledArgu(&$conf){
232
 
254
 
233
	#初始化要回傳的結果
255
	#初始化要回傳的結果
234
	$result=array();
256
	$result=array();
235
 
257