/plugins/builtin/functions/truncate.php

Description

Truncates a string at the given length

  * value : text to truncate
  * length : the maximum length for the string
  * etc : the characters that are added to show that the string was cut off
  * break : if true, the string will be cut off at the exact length, instead of cutting at the nearest space
  * middle : if true, the string will contain the beginning and the end, and the extra characters will be removed from the middle
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Functions
Dwoo_Plugin_truncate (line 23)
void Dwoo_Plugin_truncate (Dwoo $dwoo,  $value, [ $length = 80], [ $etc = '...'], [ $break = false], [ $middle = false])
  • Dwoo $dwoo
  • $value
  • $length
  • $etc
  • $break
  • $middle

Documentation generated on Sat, 18 Jul 2009 21:05:25 +0200 by phpDocumentor 1.4.0