Editor PHP 2.4.0

TruncateMode
in package

Table of Contents

Cases

Char
Will cut exactly at given length.
WordAfter
Returns the string up to the complete word after or at the given length.
WordBefore
Returns the string up to the last complete word containing the specified length.

Cases

Char

Will cut exactly at given length.

Length: 14 Source: Lorem ipsum dolor sit amet Output: Lorem ipsum do

WordBefore

Returns the string up to the last complete word containing the specified length.

Length: 14 Source: Lorem ipsum dolor sit amet Output: Lorem ipsum

WordAfter

Returns the string up to the complete word after or at the given length.

Length: 14 Source: Lorem ipsum dolor sit amet Output: Lorem ipsum dolor


        
On this page

Search results