字符串我在一個串中的HTML文件的代碼,下面給出這樣的:拆分根據第一子串和第二另一個子
--- few lines of code ---------
<SCRIPT language="javascript" type="text/javascript">
var statList = new Array(
0, "192.168.1.179", "88-53-95-28-2B-AF", 194280, 101141053, 0, 0, 0, 0, 0, 0, 0, 0,
1, "192.168.1.170", "60-C5-47-10-37-FD", 132316, 65860791, 0, 0, 0, 0, 0, 0, 0, 0,
2, "192.168.1.151", "68-5D-43-21-76-95", 9887, 3898646, 0, 0, 0, 0, 0, 0, 0, 0,
3, "192.168.1.134", "6C-3E-6D-8C-FF-62", 26405, 7521875, 0, 0, 0, 0, 0, 0, 0, 0,
4, "192.168.1.124", "04-F7-E4-78-D3-D0", 6189, 1791672, 0, 0, 0, 0, 0, 0, 0, 0,
5, "192.168.1.121", "60-C5-47-10-40-92", 122657, 91113301, 0, 0, 0, 0, 0, 0, 0, 0);
</SCRIPT>
---- Few other lines of code ---------
我想提取含有Array
聲明<script>
塊。
我可以使用任何PHP函數執行此操作嗎?
你的第一塊和第二塊看起來和我完全一樣嗎? –
我在上面寫過腳本代碼上方的「幾行代碼」,下面是我想跳過的腳本代碼。 –