Mecha CMS

Convert from X to Y.

$to->title()

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

To::title($in);

Example:

$test_1 = To::title('foo-bar-baz');
$test_2 = To::title('<p><strong>foo</strong> bar <em>baz</em></p>');
$test_3 = To::title('foo bar baz');