PHP 8.5.0 Alpha 4 available for testing

Voting

: max(three, five)?
(Example: nine)

The Note You're Voting On

v0rbiz at yahoo dot com
21 years ago
I did not found a unicode/multibyte capable 'ord' function, so...

<?php
function uniord($u) {
$k = mb_convert_encoding($u, 'UCS-2LE', 'UTF-8');
$k1 = ord(substr($k, 0, 1));
$k2 = ord(substr($k, 1, 1));
return
$k2 * 256 + $k1;
}
?>

<< Back to user notes page

To Top