lp__force_ucwords( $value )

Converts the first character of each word in a string to uppercase.

Plugin

Namespace

Launchpad

Parameters

string

$value

The string to force uppercase words on.

Return

string

The resulting string with each word’s first character in uppercase.

Source

File: \includes\lp-utility-functions.php

function lp__force_ucwords( $value ){
    return $value != '' ? ucwords(strtolower($value)) : ''; 
}

Related

Use to convert a string to a valid phone number.

Use to parse an array serialized as a string and returns it as a concatenated string.

Use to escape single quotes in a string.

Use to format a date string according to the specified format and timezone.