日期:2014-05-17 浏览次数:20695 次
$s=你的串
preg_match_all('/Array\(.+\)/sU',$s,$m);
print_r($m);
$s =<<< TXTArray
var switchPara = new Array(26,0,1,24,25,2,6,8,2,2,4);
var VlanTagGlobalList = new Array(
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 1,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 0,
0, 1, 1,
0, 1, 0,
0, 0, 99,
0, 0, 99,
0,0 );
var VlanTagGlobalTList = new Array(
0, 99,
0, 99,
0, 99,
0, 99,
0, 99,
0, 99,
0,0 );
var userLevel=window.parent.user[1];
//--></Script>
TXT;
preg_match_all('/new Array\((.+?)\)/s', $s, $r);
print_r($r[1]);