Voting

: max(seven, eight)?
(Example: nine)

The Note You're Voting On

xslidian at lidian dot info
12 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