Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 14:12:16
2

PHP Str_replace - PHP Tutorial

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

Upload Image With PHP

[Example3] Tutorial - How to upload image in php.

Upload Image with PHP [Example2]

[Example2] Tutorial - How to upload and resize image with PHP

Site Recommendation

This script will allow your visitors to recommend your site to their friends.

PHP explode

Explode — Split a string by string.

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

PHP Redirect

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

Jquery - Formatting International Phone Numbers

How to format international telephone numbers with jquery

PHP Forms

FREE PHP forms

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf
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.