Ad

Caps_look

Uppercase the first character of each word in a string.

example:


"Hello My Friends." => "hello my friends."

Code
Diff
  • function caps($c) {
      return ucwords($c);
    }
    
    • public function caps($c)
    • {
    • return ucwords($c);
    • }
    • function caps($c) {
    • return ucwords($c);
    • }

capslock

Uppercase the first character of each word in a string.
public function caps($c)
    {
        return ucwords($c);
    }