3.133.12.172 |    

Navigation

Google Advertisement

Diese Funktion wandelt ein String in Kleinbuchstaben und den ersten Buchstaben jedes Wortes in ein Großbuchstaben um.

ucwords
  1. # **************************************************************
  2. # ucwords -- Converts first letter of each word within a string
  3. # into an uppercase all other to lowercase.
  4. #
  5. #     string ucwords( string string )
  6.  
  7. sub ucwords {
  8.  
  9. my @array = split( /\s+/, shift );
  10. return ( join( ' ', @array = grep { $_ = lc($_); $_ = ucfirst($_) } @array ) );
  11.  
  12. }
Parsed in 0.001 seconds at 327.06 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)