Location: PHPKode > projects > Open Power Template > tests/Opt/function/capitalize_2.txt
Testing the capitalize() function in the aggregate version.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{@vars is capitalize($vars)}
{@vars.v1}
{@vars.v2}
</opt:root>

>>>>data.php
$view->vars = array(
	'v1' => 'hi universe',
	'v2' => 'Hi UnIvErSe'
);

>>>>expected.txt
OUTPUT

>>>>result.txt
Hi universe
Hi UnIvErSe
Return current item: Open Power Template