Weird events, array problems
PHP Code
$list =array ([page] = = Array ([page_id] = 1, [path] = tiyee.html, [ Templates] = Zj001.tpl, [key] = 21212121,), [qianggou] = = Array ([obje CT_ID] = 1, [number] = 0, [Oldprice] = 0.00, [Newprice] = 0.00, [BeginTime] = 0000-00-00 00:00:00, [endtime] = 0000-00-00 00:00:00, [limit_b] = 0000-0 0-00 00:00:00, [limit_e] = 0000-00-00 00:00:00, [type] = 1, [saleout] = 0, [Classtime] = 0000-00-00 00:00:00, [page_id] = 1,), [miaosha] = = Array ( [OBJECT_ID] = 2, [number] = 0, [Oldprice] = 0.00, [Newprice] = 0.00, [BeginTime] = 2010-04-18 23:42:10, [endtime] = 2010-04-18 23:42:10, [limit _b] = 2010-04-18 23:42:10, [limit_e] = 2010-04-18 23:42:10, [type] = 2, [saleout] = 0, [Classtime] = 0000-00-00 00:00:00, [page_id] = 1,)) echo '';p rint_r ($list [' page ']);
What is the result of 1? Is it supposed to be a number?
------Solution--------------------
PHP Code
$list =array ( ' page ' = = Array ( ' page_id ' = + 1, ' path ' = ' tiyee.html ', ' templates ' = = ') Zj001.tpl ', ' key ' = 21212121 ));p rint_r ($list [' page ']);