TRUNCATE


Function is intended for the conclusion of string not more than the specific length. Function assumes upon the entrance 2 or 3 arguments. First argument - string, whose part it is nessesary to obtain, second argument - count of symbols, third argument - string for writing to end.
Example of function call:
<TMPL_var TRUNCATE('foobar', 3)>: foo
<TMPL_var TRUNCATE('foobar', 3, '...')>: foo...
<TMPL_var TRUNCATE('foobar', 100, '...')>: foobar

Copyright © 2003 - 2010 CTPP Dev. Team | http://ctpp.havoc.ru