textformat函數

textformat函數

表格屬性:

微信图片_20180313125004.png

#此函數主要清理空格和特殊字符,對段落按單字邊界換行和行縮排等段落格式化處理.

#使用者可以明確設定各參數,或使用預處理風格.目前只有唯一可用風格"email".

eg:



#{textformat wrap=40}

This is foo .
This is foo.
This is foo.
This is foo.
This is foo.
This is foo.

#This is bar.

bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
{/textformat}


輸出:

This is foo. This is foo. This is foo.
This is foo. This is foo. This is foo.

This is bar.
##bar foo bar foo foo. bar foo bar foo
#foo. bar foo bar foo foo. bar foo bar
foo foo. bar foo bar foo foo. bar foo
bar foo foo. bar foo bar foo foo.

###
繼續學習
||
<?php echo "textformat函数";