请教下
$tem = 'jQuery164039686496159219203_1334476716551({"w":0,"commentNum":22,"buryNum":0,"area":0,"digNum":81,"zt":2440,"favor":0,"playNum":47824,"m":0,"ct":1334540523693,"commentTm":42276042})';我只想要"zt":2440 "playNum" :47824 请问怎么弄呢谢谢了
$tem = 'jQuery164039686496159219203_1334476716551({"w":0,"commentNum":22,"buryNum":0,"area":0,"digNum":81,"zt":2440,"favor":0,"playNum":47824,"m":0,"ct":1334540523693,"commentTm":42276042})';我只想要"zt":2440 "playNum" :47824 请问怎么弄呢谢谢了
$patten = '/"zt":(\d+)/is';preg_match_all($patten,$num,$nums);print_r($nums[1]);
$tem = 'jQuery164039686496159219203_1334476716551({"w":0,"commentNum":22,"buryNum":0,"area":0,"digNum":81,"zt":2440,"favor":0,"playNum":47824,"m":0,"ct":1334540523693,"commentTm":42276042})';
preg_match('/\((.*)\)/',$tem,$match);
print_r(json_decode($match[1],true));