<?php
$html = '<form id="form1" name="f1" action="/jk" dummy';
$html = str_replace(
'<form id="form1" name="f1"',
'<form id="form1" name="f1" xxxxxxxxxxxxx',
$html);
echo $html;
Why the result is empty?
I'm using PHP 5.3.27 (cli)
Thanks.