PHP 8.5.0 Alpha 1 available for testing

Voting

: min(four, eight)?
(Example: nine)

The Note You're Voting On

willyann at gmail dot com
20 years ago
chinese

function to_upper($string) {
$new_string = "";
$i = 0;
while($i < strlen($string)) {
if (ord(substr($string,$i,1)) <128)
{
$new_string .= strtoupper(substr($string,$i,1));
$i++;
} else {
$new_string .= substr($string,$i,2);
$i=$i+2;
}
}
return $new_string;
}

<< Back to user notes page

To Top