Reputation: 101
This my code
$urlArray = array();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_ENCODING, 'UTF-8');
$result = curl_exec($ch);
When I use print_r($result)
=> result is:Tên Huyệt Mệnh Môn:
Thận khí là gốc của cơ thể. Huyệt nằm giữa 2 huyệt Thận Du, là cửa trọng yếu của sinh mệnh, vì vậy gọi là Mệnh Môn (Trung Y Cương Mục).
but I use preg_match('|Tên Huyệt(.*)|', $result, $matches)
it return array empty.
I don't know why. Anyone tell me why, pls.
Upvotes: 0
Views: 377