陣列一:
$devicename = array(
array('t0001'),##卷
## array('t0003'), );數二:#
## | ## array('status' => '1',##
array( 'status' => '1', 'online_status' =>'1',1) array(
'status' => '1',
'online_status' => ',
gt ), 如果# ##
上網查詢的合併一維陣列方法(但無法使用) $savearrays = array_combine($devicename,$arrstat $savearrays = array_combine($devicename,$arrstatus);#. var_dump($savearrays);die;
#最後想要得到的效果是:
array (size=3)'t0001' =>
array (size=2) 'status' => string '1' (length=1) 'online_status' => string ' =1) 't0002' =>
array (size=2)
'status' => string '1' (length=1)
'status' =>; 1' (length=1)'t0003' =>
array (size=2) 'status' => string '1' (length=1)
'status' => string '1' (length=1)