Home > Article > Backend Development > PHP uses curl to crawl Sina Weibo content example_PHP tutorial
Many people like to DIY their own Weibo on the website, so I also wrote one.
The Weibo show address in Sina Weibo tool is directly captured here.
(.*)
preg_match_all('/(.*)/iUs',$content,$ time);//Get time $a=$text[0];
$b=$time[0];
$result=array_combine($a, $b);//Combine arrays
foreach($result as $text=>$time){
echo "";
echo strip_tags( $text);
echo strip_tags($time);
}
?>