Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

String replace with Regular Expressions

Sun Oct 26, 2008 10:18 pm

Code:
<?
$old_string 
"I  live in  EGYPT!";
$new_string ereg_replace("EGYPT""USA"$old_string);
echo 
"$new_string";
?>




Post a reply
  Related Posts  to : String replace with Regular Expressions
 Regular Expressions and Patterns     -  
 search in a string and replace     -  
 String replace by index value     -  
 Remove a portion of the array and replace it with something     -  
 java Expressions     -  
 java regular expression     -  
 email adress validation and regular expression     -  
 Results of Java expressions for arithmetic operations     -  
 check if string ends with specific sub-string in php     -  
 recursive string reversal- reverse string     -  

Topic Tags

PHP Strings