First character uppercase + language variable

How can i combine str::ucfirst and l::get easily?

Sometimes you need the first character uppercase and the same lowercase.

Results

results

Cheers, Maarten

<?php echo l::get('results') ?>

You can combine it like this (or is this not easy enough?):

<?= str::ucfirst(l('results')); ?>
1 Like

Wow that’s perfect! Thanks