我要解析一个日志文件,我想知道如何转换这样的字符串:
[5189192e][game]: kill killer='0:Tee' victim='1:nameless tee' weapon=5 special=0
进入某种数组:
$log['5189192e']['game']['killer'] = '0:Tee';
$log['5189192e']['game']['victim'] = '1:nameless tee';
$log['5189192e']['game']['weapon'] = '5';
$log['5189192e']['game']['special'] = '0';