You are here

function smarty_modifier_wordwrap in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/moodle/lib/smarty/plugins/modifier.wordwrap.php \smarty_modifier_wordwrap()

Smarty wordwrap modifier plugin

Type: modifier<br> Name: wordwrap<br> Purpose: wrap a string of text at a given length @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual)

Parameters

string:

integer:

boolean:

Return value

string

File

includes/moodle/lib/smarty/plugins/modifier.wordwrap.php, line 23

Code

function smarty_modifier_wordwrap($string, $length = 80, $break = "\n", $cut = false) {
  return wordwrap($string, $length, $break, $cut);
}