Get Smarty

Donate

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap glasses from Cheapglasses123.com and save up to 80%.

Where to buy prescription glasses? EyewearCanada.com is your best choice!

Visit www.sport-kick.com for cheap soccer cleats, sneakers and Soccer Jerseys updates

Advertisement

spacify

spacify adalah cara untuk menyisipkan spasi diantara setiap karakter dari variabel. Anda bisa secara opsional mengirimkan karakter atau string berbeda untuk disisipkan.

Posisi ParameterTipeDiperlukanDefaultDeskripsi
1stringTidaksatu spasiIni akan disisipkan diantara setiap karakter dari variabel.

Teladan 5-17. spacify

assign(\'articleTitle\', \'Something Went Wrong in Jet Crash, Experts Say.\'); ?>'); ?>

Di mana template adalah:

{$articleTitle}
{$articleTitle|spacify}
{$articleTitle|spacify:"^^"}

Akan memperlihatkan:

Something Went Wrong in Jet Crash, Experts Say.
S o m e t h i n g   W .... snip ....  s h ,   E x p e r t s   S a y .
S^^o^^m^^e^^t^^h^^i^^n^^g^^ .... snip .... ^^e^^r^^t^^s^^ ^^S^^a^^y^^.

Lihat juga wordwrap dan nl2br.

Comments
No comments for this page.

Advertisement