Take a look at this code:
(看看这段代码:)
$GET = array();
$key = 'one=1';
$rule = explode('=', $key);
/* array_push($GET, $rule[0] => $rule[1]); */
I'm looking for something like this so that:
(我正在寻找这样的东西,以便:)
print_r($GET);
/* output: $GET[one => 1, two => 2, ...] */
Is there a function to do this?
(有这个功能吗?)
(because array_push
won't work this way) ((因为array_push
不会这样工作))
ask by Gal translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…