how to get the value found, instead of replacing?
echo $response=$htmlParserA->find("/tbody/tr/td",5)->plaintext."<br>";
$str=preg_replace("/[0-9][0-9][0-9]/","",$response);
echo $str;
Response:
Before HTTP/1.1 301 Moved Permanently
After HTTP/1.1 Moved Permanently
how to get 301?
ANSWER:
$str=preg_match("/[0-9][0-9][0-9]/",$response,$asd);
echo $asd[0];