Subversion Repositories php-qbpwcf

Rev

Blame | Last modification | View Log | RSS feed

<?php

#指派命明空間為qbpwcf
namespace qbpwcf;

#匯入外部套件
include("../allInOne.php");

/*

#提示要測試的函數
echo "<hr>text::htmlComment - testCase 1<p>";

#函式說明:
#顯示html的註解.
#回傳的結果:
#$result["status"],執行是否成功,"true"代表執行成功,"false"代表執行失敗.
#$result["error"],錯誤訊息陣列.
#$result["output"],我們所要的內容.
#必填的參數:
#$conf["contentArray"],陣列型態,代表每一行的註解內容.
$conf["contentArray"]=array("這是html裡面的註解","請大家多加利用!");
#可省略的參數:
#無.
#備註:
#\r與\n代表換行.
#參考資料來源:
#w3c HTML <!--...--> Tag,http://www.w3schools.com/tags/tag_comment.asp.
var_dump(text::htmlComment($conf));
unset($conf);

*/

/*

#提示要測試的函數
echo "<hr>text::oneLine - testCase 1<p>";

#函式說明:
#顯示一行文字
#回傳的結果:
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
#$result["error"],錯誤訊息陣列.
#$result["function"],當前執行的函數名稱.
#$result["content"],語法.
#必填的參數:
#$conf["string"],字串
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
#可省略的參數:
#$conf["br"],字串,"true"代表最後要換行
#$conf["br"]="true";
#$conf["p"],字串,"true"代表最後要空一行
#$conf["p"]="true";
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
#$conf["class"]="";
var_dump(text::oneLine($conf));
unset($conf);

*/

/*

#提示要測試的函數
echo "<hr>text::multiLine - testCase 1<p>";

#函式說明:
#顯示多行文字.
#回傳的結果:
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
#$result["error"],錯誤訊息陣列.
#$result["function"],當前執行的函數名稱.
#$result["content"],語法.
#必填的參數:
#$conf["string"],字串
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
#可省略的參數:
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
#$conf["class"]="";
var_dump(text::multiLine($conf));
unset($conf);
        
*/

/*

#提示要測試的函數
echo "<hr>text::multiLine - testCase 1<p>";

#函式說明:
#顯示多行文字.
#回傳的結果:
#$result["status"],執行是否正常,"true"為正常,"false"為不正常.
#$result["error"],錯誤訊息陣列.
#$result["function"],當前執行的函數名稱.
#$result["content"],語法.
#必填的參數:
#$conf["string"],字串
$conf["string"]="Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World Hello World";
#可省略的參數:
#$conf["class"],字串,要使用的css樣式名稱,預設為"__defaultTextStyle"
#$conf["class"]="";
var_dump(text::multiLine($conf));
unset($conf);
        
*/

/*

#提示要測試的函數
echo "<hr>text::vecho - testCase 1<p>";

#宣告變數
$var="Hello World!";

#函式說明:
#echo函式的加強版,變數存在才會印出來.
#回傳內容:
#無.
#必填參數:
#$conf["var"],變數位址.
$conf["var"]=&$var;
text::vecho($conf);
unset($conf);

*/

/*

#提示要測試的函數
echo "<hr>text::vecho - testCase 2<p>";

#宣告變數
#$var2="Hello World!";

#函式說明:
#echo函式的加強版,變數存在才會印出來.
#回傳內容:
#無.
#必填參數:
#$conf["var"],變數位址.
$conf["var"]=&$var2;
text::vecho($conf);
unset($conf);

*/

?>