>  2008/01/06 (日) 23:15:39        [qwerty]
> > $contents = array(
> >     "name_hoge" => array( "type" => "1" , "flg" => "1" )
> >     "name_hage" => array( "type" => "1" , "flg" => "0" )
> >     "test_popo" => array( "type" => "0" , "flg" => "1" )
> >     .
> >     .
> >     .
> >     "kuso_poge" => array( "type" => "2" , "flg" => "1" )
> > )
> > この$contentsを、以下のような$newcontentsにコピーしたいんです
> > $newcontents = array(
> >     array( "checked" , "NULL" , "NULL" ) //name_hogeを指す
> >     array( "NULL" , "NULL" , "cehcked" ) //name_hageを
> >     array( "NULL" , "NULL" , "NULL" )    //test_popo
> >     .
> >     .
> >     .
> >     array( "NULL" , "checked" , "NULL" ) //kuso_poge
> > )
> > どうすれば$contentsを$newcontentsにコピーできるんでしょうか
> $newcontents = clone $contents;

㌧
検索であまり引っかからなかったのでもうちょっと聞きたいんですけど
たとえば
$test = array(
   "hoge" => 0 ,
   "poge" => 0 ,
   "moge" => 1 ,
   .
   .
   "hohe" => 3
)
を
$contents = array(
   0 ,
   0 ,
   1 ,
   .
   .
   3
)
にしたい場合はどのようになりますか?

参考:2008/01/06(日)23時08分27秒