<?php$string = "This is a test";echo str_replace(" is", " was", $string);echo ereg_replace("( )is", "\\1was", $string);echo ereg_replace("(( )is)", "\\2was", $string);?> output is :This was a testThis was a testThis was a testcan any one know how this has come
do you want to validate that e mail form or simply you are creating email form. in html you didnt specify any form tag.check this link www.php.net this is the complete resource for phpwhat you going to do explain clearlythanks
<?php$f=fopen('/home/ramkumar/Desktop/a.txt','r') or exit("unable to open the file");while (!feof($f)) { $x=fgetc($f); echo $x;}fclose($f);?>this is the program i am getting unable to open the file as an output . i tried using both absolute and relative path