Re: [請益] 關於於字串中辨別ip~~
※ 引述《tas72732002 (蔥頭)》之銘言:
: 請勿一下~~~
: 因為要從日制檔(log)去撈 撈出來後並對此檔進行ip流量的統計
: 不同的ip才可加1 不知有沒有人可以提供如何辨別
: ip格式的方法或做法~~
: 感謝!!!
全部丟到 array 裡面:
$ip = array();
$ip[] = $log_id;
$result = array_unique($ip);
print_r($result);
echo count($result);
--
PHP MVC CodeIgniter 繁體中文手冊: http://tinyurl.com/mduyv8
PHP MVC CodeIgniter 繁體中文討論區:http://tinyurl.com/yayzoz8
PHP MVC CodeIgniter 中文官方網站: http://tinyurl.com/yatds8n
Appleboy Blog 電腦技術: http://blog.Wu-Boy.com
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.107.202
推
01/04 11:55, , 1F
01/04 11:55, 1F
→
01/04 12:15, , 2F
01/04 12:15, 2F
討論串 (同標題文章)
PHP 近期熱門文章
PTT數位生活區 即時熱門文章
0
18