Twig capitalize filter

 The capitalize filter capitalizes a value. The first character will be uppercase, all others lowercase:


{{ 'my first car'|capitalize }}


{# outputs 'My first car' #}

No comments:

Write a program in PHP to reverse a number

A number can be written in reverse order. For example 12345 = 54321 <?php   $ num = 23456;   $ revnum = 0;   while ($ num > 1)   {   $...