Lower

{lower} — This is used to lowercase a variable. This is equivalent to the PHP strtolower() function.

PHP Syntax:

<?php
strtolower($value)
Assign in your PHP app:

<?php
$tplix->assign('name', "Hello World!");

Where template is:


{$name}
{$name|lower}

The above example will output:


Hello World!
hello world!
Was this article helpful?