App下載

詞條

大約有 7,000 項(xiàng)符合查詢結(jié)果 ,庫(kù)內(nèi)數(shù)據(jù)總量為 78,250 項(xiàng)。(搜索耗時(shí):0.0067秒)

4101.Smarty:lower

lower將變量值轉(zhuǎn)成小寫字母。 等同于PHP的 strtolower()函數(shù)。Example 5.13. lower<?php $smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); ?> 模板:{$articleTitle} {$articleTitle|lower} 輸出:Two Convicts Evade Noose, Jury Hung. two c...

http://www.o2fo.com/smarty/smarty-lower.html

4102.Smarty:nl2br

...變量值中的"\n"回車全部轉(zhuǎn)換成HTML的 <br />。 等同于PHP的 nl2br()函數(shù)。Example 5.14. nl2br<?php $smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight" ); ?> 模板:{$articleTitle|nl2br} 輸出:Sun or rain expected<br />today, d...

http://www.o2fo.com/smarty/smarty-nl2br.html

4103.Smarty:replace

replace對(duì)變量進(jìn)行簡(jiǎn)單的搜索和替換。 等同于PHP函數(shù)的 str_replace()。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1stringYesn/a需要搜索并替換的字符2stringYesn/a替換用的字符Example 5.16. replace<?php $smarty->assign('articleTitle', "Child's Stool G...

http://www.o2fo.com/smarty/smarty-replace.html

4104.Smarty:string_format

string_format格式化字符串,如浮點(diǎn)數(shù)等。 使用 sprintf()的PHP函數(shù)來(lái)進(jìn)行。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1stringYesn/a指定哪種格式 (sprintf)Example 5.18. string_format<?php $smarty->assign('number', 23.5787446); ?> 模板:{$number} {$number|s...

http://www.o2fo.com/smarty/smarty-stringformat.html

4105.Smarty:upper

upper將變量值轉(zhuǎn)成大寫字母。 等同于PHP的 strtoupper()函數(shù)。Example 5.23. upper<?php $smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); ?> 模板:{$articleTitle} {$articleTitle|upper} 輸出:If Strike isn't Settled Qu...

http://www.o2fo.com/smarty/smarty-upper.html

4106.Smarty:wordwrap

...拆開),那么可以設(shè)置 可選的第三個(gè)參數(shù)為TRUE,效果與PHP函數(shù)wordwrap()一樣。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1integerNo80限定一行的長(zhǎng)度。2stringNo\n換行符號(hào)3booleanNoFALSE設(shè)置按單詞換行(FALSE),或者按字符換行(TRUE)。Example 5.24. word...

http://www.o2fo.com/smarty/smarty-wordwrap.html

4107.Smarty成員變量:$debugging_ctrl

...本設(shè)置將忽略。Example 13.3. 在localhost上的$debugging_ctrl<?php // 只在localhost的地址上面顯示調(diào)試控制臺(tái) // 地址:http://localhost/script.php?foo=bar&SMARTY_DEBUG $smarty->debugging = false; // 默認(rèn) $smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == &...

http://www.o2fo.com/smarty/smarty-debugging-ctrl.html

4108.Smarty成員變量:$plugins_dir

..., 然后再搜索相對(duì)當(dāng)前工作目錄的路徑,再是搜索相對(duì)PHP包含路徑。 如果$plugins_dir是多個(gè)目錄值的數(shù)組,那么Smarty將按數(shù)組項(xiàng)排列的順序來(lái)搜索每個(gè)目錄里面的插件文件。技術(shù)說(shuō)明從性能考慮,不要設(shè)置你的$plugins_dir為PHP必須...

http://www.o2fo.com/smarty/smarty-plugins-dir.html

4109.Smarty成員變量:$use_sub_dirs

...于加快文件系統(tǒng)的搜索速度。 另外,一些環(huán)境是不允許PHP進(jìn)程創(chuàng)建目錄的,所以這只能默認(rèn)是關(guān)閉。子目錄是非常高效的,所以如有可能的話,盡可能采用它。 理論上來(lái)說(shuō),在文件系統(tǒng)上的10個(gè)目錄里每個(gè)目錄有100個(gè)文件, 比...

http://www.o2fo.com/smarty/smarty-use-sub-dirs.html

4110.公共控制器

...引擎的配置操作。其它控制器必須繼承于公共控制器<?php class User extends Common{ }根據(jù)實(shí)際需求或繼承于基類控制器:<?php class UserController extends Controller{ }

http://www.o2fo.com/idea_framework/au171rzi.html

抱歉,暫時(shí)沒(méi)有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

4101.Smarty:lower

lower將變量值轉(zhuǎn)成小寫字母。 等同于PHP的 strtolower()函數(shù)。Example 5.13. lower<?php $smarty->assign('articleTitle', 'Two Convicts Evade Noose, Jury Hung.'); ?> 模板:{$articleTitle} {$articleTitle|lower} 輸出:Two Convicts Evade Noose, Jury Hung. two c...

http://www.o2fo.com/smarty/smarty-lower.html

4102.Smarty:nl2br

...變量值中的"\n"回車全部轉(zhuǎn)換成HTML的 <br />。 等同于PHP的 nl2br()函數(shù)。Example 5.14. nl2br<?php $smarty->assign('articleTitle', "Sun or rain expected\ntoday, dark tonight" ); ?> 模板:{$articleTitle|nl2br} 輸出:Sun or rain expected<br />today, d...

http://www.o2fo.com/smarty/smarty-nl2br.html

4103.Smarty:replace

replace對(duì)變量進(jìn)行簡(jiǎn)單的搜索和替換。 等同于PHP函數(shù)的 str_replace()。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1stringYesn/a需要搜索并替換的字符2stringYesn/a替換用的字符Example 5.16. replace<?php $smarty->assign('articleTitle', "Child's Stool G...

http://www.o2fo.com/smarty/smarty-replace.html

4104.Smarty:string_format

string_format格式化字符串,如浮點(diǎn)數(shù)等。 使用 sprintf()的PHP函數(shù)來(lái)進(jìn)行。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1stringYesn/a指定哪種格式 (sprintf)Example 5.18. string_format<?php $smarty->assign('number', 23.5787446); ?> 模板:{$number} {$number|s...

http://www.o2fo.com/smarty/smarty-stringformat.html

4105.Smarty:upper

upper將變量值轉(zhuǎn)成大寫字母。 等同于PHP的 strtoupper()函數(shù)。Example 5.23. upper<?php $smarty->assign('articleTitle', "If Strike isn't Settled Quickly it may Last a While."); ?> 模板:{$articleTitle} {$articleTitle|upper} 輸出:If Strike isn't Settled Qu...

http://www.o2fo.com/smarty/smarty-upper.html

4106.Smarty:wordwrap

...拆開),那么可以設(shè)置 可選的第三個(gè)參數(shù)為TRUE,效果與PHP函數(shù)wordwrap()一樣。參數(shù)順序類型必選參數(shù)默認(rèn)值說(shuō)明1integerNo80限定一行的長(zhǎng)度。2stringNo\n換行符號(hào)3booleanNoFALSE設(shè)置按單詞換行(FALSE),或者按字符換行(TRUE)。Example 5.24. word...

http://www.o2fo.com/smarty/smarty-wordwrap.html

4107.Smarty成員變量:$debugging_ctrl

...本設(shè)置將忽略。Example 13.3. 在localhost上的$debugging_ctrl<?php // 只在localhost的地址上面顯示調(diào)試控制臺(tái) // 地址:http://localhost/script.php?foo=bar&SMARTY_DEBUG $smarty->debugging = false; // 默認(rèn) $smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == &...

http://www.o2fo.com/smarty/smarty-debugging-ctrl.html

4108.Smarty成員變量:$plugins_dir

..., 然后再搜索相對(duì)當(dāng)前工作目錄的路徑,再是搜索相對(duì)PHP包含路徑。 如果$plugins_dir是多個(gè)目錄值的數(shù)組,那么Smarty將按數(shù)組項(xiàng)排列的順序來(lái)搜索每個(gè)目錄里面的插件文件。技術(shù)說(shuō)明從性能考慮,不要設(shè)置你的$plugins_dir為PHP必須...

http://www.o2fo.com/smarty/smarty-plugins-dir.html

4109.Smarty成員變量:$use_sub_dirs

...于加快文件系統(tǒng)的搜索速度。 另外,一些環(huán)境是不允許PHP進(jìn)程創(chuàng)建目錄的,所以這只能默認(rèn)是關(guān)閉。子目錄是非常高效的,所以如有可能的話,盡可能采用它。 理論上來(lái)說(shuō),在文件系統(tǒng)上的10個(gè)目錄里每個(gè)目錄有100個(gè)文件, 比...

http://www.o2fo.com/smarty/smarty-use-sub-dirs.html

4110.公共控制器

...引擎的配置操作。其它控制器必須繼承于公共控制器<?php class User extends Common{ }根據(jù)實(shí)際需求或繼承于基類控制器:<?php class UserController extends Controller{ }

http://www.o2fo.com/idea_framework/au171rzi.html

抱歉,暫時(shí)沒(méi)有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程