Ad block is installed and active. Please support us by disabling it.
HomeSaturday, January 20, 2018, 16:52:29
1

PHP str_replace

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

Advanced Contact Form - PHP Script

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

Block Visitors From Specific IP Address

Learn How To Restrict Users From Different IP Addresses.

PHP getdate

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

PHP Cookies and Sessions Tutorial

PHP Cookies and Sessions Tutorials

Preventing multiple form submissions

Preventing multiple form submissions

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL

PHP Tutorials

Useful step-by-step PHP tutorials for beginners

PHP Form Action Self Submit

PHP form action self submit tutorial, requirement(s): PHP server

Sending HTML Email With Images - PHP Tutorial

Sending HTML Email With Images - Upload Image with PHP - Creating Dynamic Webpages Using PHP and MySQL - Select, Delete, Update..

Images In Textarea - CSS

Tutorial Images in Textarea
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.