Sources for file plugins/smarty/modifier.wordwrap.php in version 2.0 Release Candidate 2



Click on a comment to hide it. Click here to show all comments.

/*
 * 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);
}

?>


Website is Copyright © Odynia.org 2000-2005 - Xnyo is released under a BSD license.