To::title()
Convert file name, HTML string or plain text into
Title Case
.
To::title(string $value);
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';