x
 
<!DOCTYPE html>
<html>
<body>
<?php
echo substr_replace("Hello world","Shanghai",-5);
?>
  
</body>
</html>