$str="
<h2 class=\"model\">
iPhone 4 </h2>";
preg_match('|>(.*)</h2>|sei', $str, $arr);
echo trim($arr[1]);
$str="
<h2 class=\"model\">
iPhone 4 </h2>";
preg_match('|>(.*)</h2>|sei', $str, $arr);
echo trim($arr[1]);
Цитата (NitroGenerate @ 9.10.2013 - 13:49) |
Мне кажется или вы все специально усложняее, причем сильно ?
|