php str_replae()
function
echo $socUrl = str_replace(‘-‘, ‘smarttips.in’, ‘My favorite website is -‘);
output-My favorite website is smarttips.in
function
echo $socUrl = str_replace(‘-‘, ‘smarttips.in’, ‘My favorite website is -‘);
output-My favorite website is smarttips.in