Location: PHPKode > projects > Open Power Template > tests/Opt/function/count_chars_1.txt
Testing the countChars() function.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{countChars('hi universe')}
{countChars('open power template 2')}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>result.txt
11
21
Return current item: Open Power Template