Ad block is installed and active. Please support us by disabling it.
HomeThursday, September 21, 2017, 03:22:10
2

PHP Str_replace - PHP Tutorial

Tuesday, February 10, 15, 09:47:01, 3 Yaers Ago Via wain, Hits: 2842
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

Advanced Contact Form - PHP Script

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

Contact Us Form With Captcha

A contact us form with email and form field validation. It allows your visitors to send you an email directly from your website. Features: Captcha Image, HTML output.

PHP Form Action Self Submit

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

HTML Button Generator

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

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.

Preg_Match - PHP Email Validation

Validate email with preg_match in php

MySQL – Select from two tables

Select data from two tables, PHP MySQL

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0

Email to Friend - PHP Script

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

Addslashes - Stripslashes

addslashes — quote string with slashes, stripslashes — un-quotes a quoted string
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.