Skip to main content
Skip table of contents

Stringfunctions+ | Formula LISTPARTSTRING

Description

This formula displays parts of an HTML list.

Formula(s)

PHP
{=LISTPARTSTRING("String or array for editing";Start;Length; Display type;Include surrounding HTML)}

Result

  • String

  • Array

Parameters

Parameter
Content
Format
Default value
Explanation

String or array for editing

String containing an HTML list element, a string separated by line breaks or an array defining a list

String

Array

 

 

Start

Non-negative index starting from 0

Integer

0

 

Length

Length of the list

Integer

0

Positive: List contains this number of elements (if possible)

Negative: Original list shortened by the number of elements

0: all (from start in each case)

Display type

Output format, as in the original, as unordered list (ul), ordered list (ol), array or the list items (li) only

Integer

DISPLAY_TYPE_ORIGINAL

Possible values:

  • DISPLAY_TYPE_ORIGINAL

  • DISPLAY_TYPE_UL

  • DISPLAY_TYPE_OL

  • DISPLAY_TYPE_ARRAY

  • DISPLAY_TYPE_LI_ONLY

Include surrounding HTML

TRUE or FALSE

Boolean

FALSE

TRUE: Surrounding HTML is included

FALSE: Only the list / list elements are included

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.