PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
// String to find
$search_string = 'http://www.yahoo.com';
// Stirng to replace it with
$replace_string = 'http://www.google.com';
// Run the search
str_replace($search_string, $replace_string, $your_original_string);
// String to find
$search_string = 'http://www.yahoo.com';
// Stirng to replace it with
$replace_string = 'http://www.google.com';
// Run the search
str_replace($search_string, $replace_string, $your_original_string);
thats funny basically i put www. only and it fixed the url to have http:// thats what i want! lol