Hi to all,
My aim is to pickup the substring from the $test between <p> & </p> and having word "code" inside.
I m using following code::
$test = "before<p>my code is yyyyyyyyXH99</p><p>This is second line</p>after";
print strlen($test);print"<br>";
print eregi( "<p>.code.</p>" ,$test,$array);
print "<br>\$array[0] :: $array[0]";
I m getting the following output::
62
56
$array[0] ::
my code is yyyyyyyyXH99
This is second line
I dont wana "This is second line" in my output