本文介绍了每个元素的值存储2乘2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< pre lang =PHP> 





我有这个数组:



数组([0] => 1353507690,1353595005,1353507690,[1] => 1353595005,1353595005 [2] => 1353767805,[3 ] => 1353854205,1353853290 [4] => 1354026090,[5] => 1354199805,[6] => 1354371690,1354372605 [7] => 1354459005,1354406400,1354458090 [8] => 1354630890,1354579200 [9] => 1355408490,1355408490 [10] => 1355494890,[11] => 1355563290,1355563290,1355581290,1355581200,1355582205,1355582205,1355581290,1355582205,1355581290,1355582205 [12] => ; 1355667690,[13] => 1355754090,1356013290 [14] => 1355926890,)



我想存储每个元素的2乘2值。如果没有价值,则由null设定。



喜欢这样:



$ arr [0] = 1353507690,1353595005

$ arr [1] = 1353507690,''''

$ arr [2] = 1353595005,1353595005

$ arr [3] = 1353767805,''''



等等



请帮帮我。



TNX

解决方案




<pre lang="PHP">

Hi,

I have this Array:

Array ( [0] => 1353507690,1353595005,1353507690, [1] => 1353595005,1353595005 [2] => 1353767805, [3] => 1353854205,1353853290 [4] => 1354026090, [5] => 1354199805, [6] => 1354371690,1354372605 [7] => 1354459005,,1354406400,1354458090 [8] => 1354630890,1354579200 [9] => 1355408490,1355408490 [10] => 1355494890, [11] => 1355563290,1355563290,1355581290,1355581200,1355582205,1355582205,1355581290,1355582205,1355581290,1355582205 [12] => 1355667690, [13] => 1355754090,1356013290 [14] => 1355926890, )

I want to store 2 by 2 value of each element. and if doesn''t value, that is set by null.

Like this:

$arr[0]=1353507690,1353595005
$arr[1]=1353507690,''''
$arr[2]=1353595005,1353595005
$arr[3]=1353767805,''''

and etc.

Please help me.

TNX

解决方案




这篇关于每个元素的值存储2乘2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 22:52