Strlen

strlen — Returns the length (number of characters) in the given string, including spaces.

Basic Usage:
{$articleTitle|strlen}

Examples:

<?php
$tplix->assign('articleTitle', "Blind Woman Gets <font face=\"helvetica\">New
Kidney</font> from Dad she Hasn't Seen in <b>years</b>.");

Where the template is:

{$articleTitle}
{$articleTitle|strlen}
{123|strlen}

Output:

Blind Woman Gets New Kidney from Dad she Hasn't Seen in years.
99
3
Was this article helpful?