[請益] preg_match_all的問題
<?php
$url ="http://www.kimo.com.tw/index.php";
preg_match_all("/kimo/",$url,$links);
echo $links;
?>
為什麼會印出來會是
Notice: Array to string conversion in D:\xampp\htdocs\travel\form\crawl.php
on line 12
Array
另外 preg_match_all和preg_match差別在哪
看了php.net似乎沒有這樣的解答
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.255.23.71
※ 編輯: woody3724 來自: 111.255.23.71 (09/11 13:01)
→
09/11 13:05, , 1F
09/11 13:05, 1F
推
09/11 13:08, , 2F
09/11 13:08, 2F
→
09/11 13:51, , 3F
09/11 13:51, 3F
→
09/11 14:09, , 4F
09/11 14:09, 4F
討論串 (同標題文章)
完整討論串 (本文為第 4 之 4 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章