keyoxide-web/server/functions.php

13 lines
236 B
PHP
Raw Permalink Normal View History

<?php
function str_lreplace($search, $replace, $subject) {
$pos = strrpos($subject, $search);
if($pos !== false) {
$subject = substr_replace($subject, $replace, $pos, strlen($search));
}
return $subject;
}
?>