Get Smarty

Donate

Paypal

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

Advertisement

count_sentences

Ini dipakai untuk menghitung jumlah kalimat dalam variabel.

Teladan 5-6. count_sentences

assign(\'articleTitle\', \'Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.\' ); ?>'); ?>

Di mana template adalah:

{$articleTitle}
{$articleTitle|count_sentences}

Akan memperlihatkan:

Two Soviet Ships Collide - One Dies. Enraged Cow Injures Farmer with Axe.
2

Lihat juga count_characters, count_paragraphs dan count_words.

Comments
No comments for this page.

Advertisement