Strlen
1 min read
Jun 2, 2026
---
title: strlen
autoseo:
enabled: true
theme: learn2
child_type: default
admin:
children_display_order: collection
visible: true
---
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
Leave a Comment