PHP 8.4.24 Released!

Voting

: min(seven, six)?
(Example: nine)

The Note You're Voting On

Nethor
13 years ago
Simple but workable solution:

<?php
mb_internal_encoding("UTF-8");  // before calling the function 

function utf8_ucfirst($str){ 
    preg_match_all("~^(.)(.*)$~u", $str, $arr);
    return mb_strtoupper($arr[1][0]).$arr[2][0];
    }
?>

<< Back to user notes page

To Top