Your Ad Here

 Navigation

Home
Source code
Tutorials
RSS feeds
Articles
Books
Software
Downloads
Hosting
manuals
Forums
Script directory
Training
Our Links

 Sponsors
 Links
domain names
dropshippers
golfing products
 Downloads
 Misc

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming


Search and replace on a string

This example shows how to search and replace on a string

<?php
//using str_replace in php
//our message
$msg = "this site has a lot of asp code on it";
//the string we want added
$add_this = "php";
//replace the asp with php
$new_message = str_replace("asp" , $add_this , $msg);
//display original message then new message
echo "Original message : $msg <br>";
echo "New message : $new_message <br>";
?>





Books
 Sponsors
 Random Code
decimal to binary conversion(math)

Search a text file(string)

PHP captcha example(image)

 Random Article
  Network

Programming resources
Tutorials directory
General bid directory
sell software, make money
Find me wholesalers
Find me dropshippers
Free recipes online/a>
UK products and price comparison
Anime videos
Free lyrics search
free stuff
UK stores
Gambling directory
Sexy free wallpapers
Hosting resources
ASP site
Golf resources
iPod resources
Coupons and deals
Baby names
Domain names
Dating site
Scripts directory
Maxi directory
bigarticle : free articles
dawgwitch search
List of directories






beginners PHP Copyright © 2004 onwards by beginnersPHP.