PHP 8.4.24 Released!

Voting

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

The Note You're Voting On

xslidian at lidian dot info
13 years ago
For those in need of the last occurrence of a string:

<?php
function strrstr($h, $n, $before = false) {
    $rpos = strrpos($h, $n);
    if($rpos === false) return false;
    if($before == false) return substr($h, $rpos);
    else return substr($h, 0, $rpos);
}
?>

<< Back to user notes page

To Top