Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:07:03
1

PHP str_replace

Tuesday, February 10, 15, 00:38:08, 3 Yaers Ago Via wain, Hits: 2870
str_replace - This function returns a string or an array with all occurrences of search in subject replaced with the given replace value
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

Bookmark Script

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

PHP explode

Explode — Split a string by string.

Random MySQL Query

Random MySQL query, requirement(s): PHP Server, MySQL

GuestBook PHP Script

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

Email Link

HTML email link example

Captcha V2 - Free PHP Script

PHP Captcha protection image Version 2, - Requirement(s): PHP Server, GD Library

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

Stack Overflow Clone Script - Ja2BU

Open source question and answer script written in PHP, MySQL and jQuery. Main features are: SEO friendly url's, private message system, rating system, comments system.

Creating a Math CAPTCHA with PHP - PHP Tutorial

This tutorial will show you how to create a form with Math Captcha.

Meta Tags Generator 1.1. PHP Script

This script will allow your visitors to create meta tags online.
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.