Mecha CMS

$to->title()

Convert file name, HTML string or plain text into Title Case.

2.0.0

$to->title(string $in);

Example:

$A = To::title('foo-bar-baz');
$B = To::title('<p><strong>foo</strong> bar <em>baz</em></p>');
$C = To::title('foo bar baz');

Result:

$A = 'Foo Bar Baz';
$B = 'Foo Bar Baz';
$C = 'Foo Bar Baz';