PHP 8.4.24 Released!

Voting

: seven minus one?
(Example: nine)

The Note You're Voting On

geniusdex ( at ) brz ( dot ) nu
22 years ago
This is my version of making dotted strings:

<?php
function dot($str, $len, $dots = "...") {
    if (strlen($str) > $len) {
        $dotlen = strlen($dots);
        substr_replace($str, $dots, $len - $dotlen);
    }
}
?>

<< Back to user notes page

To Top