str::ucwords($string)

An UTF-8 safe version of ucwords()

  • $string (string)
  • return (string)

Example

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

Result:

Kirby Is A File-Based Cms

Is something missing or incorrect? Edit this page on Github…