Noah van der Aa Noah van der Aa - 1 year ago 88
PHP Question

PHP Replace text in string

i have a problem.
I want in php to replace all 'blablabla' with 'bla'(because i hate blablabla). Here's my code:

$string = 'Dracula always says BlaBlaBla but says he never says BlaBlaBla';
$result = answer to replace here


Answer Source

Use srt_replace function to do that like this :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download