Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:53:32
1

PHP str_replace

Tuesday, February 10, 15, 00:38:08, 3 Yaers Ago Via wain, Hits: 5807
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

MySQL – Select from two tables

Select data from two tables, PHP MySQL

Process Form Data with Jquery

jQuery, Process form data

Sitemap

phpForm.net Website Sitemap

PHP File Create

Create and write data to a file using the php frwite function.

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

MySQL to RSS

Publishing MySQL data in RSS

Preg_Match - PHP Form Validation

PHP form validation with preg_match

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

Advanced Contact Form - PHP Script

Advanced Contact Form with email and form field validation. Features: HTML Output(Response), Captcha Image.

Captcha V2 - Free PHP Script

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

wain

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