3.145.23.123 |    

Navigation

Google Advertisement

Mit der Funktion ucfirst() wird das erste Zeichen in einer Zeichenkette (Text, String) in einen Großbuchstaben (Großschreibung) umgewandelt.

ucfirst
  1. # *****************************************
  2. # This function convert the first letter
  3. # into uppercase letters.
  4.  
  5. function ucfirst () {
  6.  
  7. if [ -n "$1" ]; then
  8.     perl -e 'print ucfirst('$1')'
  9. else
  10.     cat - | perl -ne 'print ucfirst($_)'
  11. fi
  12.  
  13. }
Parsed in 0.002 seconds at 142.33 KB/s

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

User online
There are 8 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)