Demo entry 6768141

string replacer

   

Submitted by Elliot on Nov 02, 2018 at 01:34
Language: PHP. Code size: 140 Bytes.

<?php

$string_var = 'This is the worst day of my life!';

$fixed_str = str_replace($string_var, 'worst', 'best');

print($fixed_str);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).