<?php
  $var = "Example of ereg_replacein php";
  echo ereg_replace("( )php", "\\1php", $var);
?>