国产gaysexchina男同gay,japanrcep老熟妇乱子伦视频,吃奶呻吟打开双腿做受动态图,成人色网站,国产av一区二区三区最新精品

Smarty:indent

2018-10-12 15:33 更新

indent

縮進每一行的字符串,默認(rèn)是縮進4個空格。 可選的參數(shù)可以設(shè)置縮進的空格數(shù)量。 可選的第二個參數(shù)設(shè)置縮進使用的字符,如用 "\t" 來代替空格縮進。

參數(shù)順序類型必選參數(shù)默認(rèn)值說明
1integerNo4設(shè)置縮進多少空格
2stringNo一個空格設(shè)置用什么字符來進行縮進

Example 5.12. indent

<?php

$smarty->assign('articleTitle',
                'NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.'
                );
?>

模板:

{$articleTitle}

{$articleTitle|indent}

{$articleTitle|indent:10}

{$articleTitle|indent:1:"\t"}

輸出:

NJ judge to rule on nude beach.
Sun or rain expected today, dark tonight.
Statistics show that teen pregnancy drops off significantly after 25.

    NJ judge to rule on nude beach.
    Sun or rain expected today, dark tonight.
    Statistics show that teen pregnancy drops off significantly after 25.

          NJ judge to rule on nude beach.
          Sun or rain expected today, dark tonight.
          Statistics show that teen pregnancy drops off significantly after 25.

        NJ judge to rule on nude beach.
        Sun or rain expected today, dark tonight.
        Statistics show that teen pregnancy drops off significantly after 25.

參見 stripwordwrap 和 spacify.

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號