Replace characters in a string in php

Replace characters in a string in php