str::ucfirst($string)

An UTF-8 safe version of ucfirst()

  • $string (string)
  • return (string)

Example

<?php
$string = 'KIRBY IS A FILE-BASED CMS';
$newStr = str::ucfirst($string);
echo($newStr);

Result:

Kirby is a file-based cms