<?while(preg_match_all('/[a-z]+|[A-Z]+/',fgets(STDIN),$m)){foreach($m[0]as$i=>$w){echo$i?ucfirst(strtolower($w)):$w;}echo" ";}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page