Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: two minus two?
(Example: nine)

The Note You're Voting On

roydukkey at roydukkey dot com
15 years ago
This would be one way to create a multibyte substr_replace function

<?php
function mb_substr_replace($output, $replace, $posOpen, $posClose) {
return
mb_substr($output, 0, $posOpen).$replace.mb_substr($output, $posClose+1);
}
?>

<< Back to user notes page

To Top