mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-22 14:59:29 -07:00
12 lines
236 B
PHP
12 lines
236 B
PHP
<?php
|
|
|
|
function str_lreplace($search, $replace, $subject) {
|
|
$pos = strrpos($subject, $search);
|
|
|
|
if($pos !== false) {
|
|
$subject = substr_replace($subject, $replace, $pos, strlen($search));
|
|
}
|
|
return $subject;
|
|
}
|
|
|
|
?>
|