mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-18 15:05:19 +02:00
17 lines
390 B
PHP
17 lines
390 B
PHP
<?php
|
|
|
|
/*
|
|
* Smarty plugin
|
|
* -------------------------------------------------------------
|
|
* Type: modifier
|
|
* Name: wordwrap
|
|
* Purpose: wrap a string of text at a given length
|
|
* -------------------------------------------------------------
|
|
*/
|
|
function smarty_modifier_wordwrap($string,$length=80,$break="\n",$cut=false)
|
|
{
|
|
return wordwrap($string,$length,$break,$cut);
|
|
}
|
|
|
|
?>
|