Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:46:49
2

PHP Str_replace - PHP Tutorial

Tuesday, February 10, 15, 09:47:01, 3 Yaers Ago Via wain, Hits: 3528
This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.
Example:
Code:
<?php
$content = 'PHP 1 2 3';
$str = array('1','2','3');
$replace = array('is an open-source','server-side','scripting language');
$output = str_replace ($str,$replace,$content);
echo $output;
?>

Sign In

Sponsor

Related

GuestBook PHP Script

Allow visitors to leave messages on your site. It features easy install, admin notification, and control panel to remove unwanted entries.

Link Generator PHP Script

This script will allow your visitors to create links online.To use the "link generator" script completely free , the "powered by" link at the bottom of the pages must stay intact.

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

PHP getdate

Returns an associative array containing the date information of the timestamp, or the current local time if no timestamp is given.

View content in a zip file with PHP

List all files in a zip archive with PHP

Sitemap

phpForm.net Website Sitemap

E-Cards 1.1. PHP Script

This script will allow your visitors to send e-cards to their friends. It features admin notification and HTML output.To use the "e-cards" script completely free , the "powered by" link at the bottom of the pages must stay intact.

PHP Redirect

Header (location) redirect must be processed before any output to the browser.

Contact Us PHP Form 1.1.

A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website.

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Thu, Jun 15, 17
So far has created 115 entries.
wain
This author has not yet filled in any details.