<?php echo preg_replace("#([A-Z][a-z]*)([A-Z]|)#e","strtoupper('$1').strtolower('$2')",fread(STDIN,1e3));
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page