PHP 8.5.0 Released!

Voting

: min(two, nine)?
(Example: nine)

The Note You're Voting On

Anonymous
20 years ago
// 2005年5月30日 Justin
 // Chinese_Traditional toupper
 function CT_to_upper($string)
 { 
 $isChineseStart = false;
 
 $new_string = "";
 $i = 0;
 while($i < strlen($string))
 { 
 if (ord(substr($string,$i,1)) <128)
 {
 if( $isChineseStart == false )
 $new_string .= strtoupper(mb_substr($string,$i,1));
 else 
 $new_string .= substr($string,$i,1);
 }
 else
 {
 if( $isChineseStart == false )
 $isChineseStart = true;
 else
 $isChineseStart = false; 
 
 $new_string .= substr($string,$i,1);
 }
 $i++;
 }
 return $new_string; 
 } 
 //

<< Back to user notes page

AltStyle によって変換されたページ (->オリジナル) /