mirror of
https://codeberg.org/keyoxide/keyoxide-web.git
synced 2024-12-23 15:29:29 -07:00
13 lines
236 B
PHP
13 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;
|
||
|
}
|
||
|
|
||
|
?>
|