slitz Posted March 8, 2007 Report Share Posted March 8, 2007 Ka ieks PHP izveidot divu dimensiju masivu ? Link to comment Share on other sites More sharing options...
rpr Posted March 8, 2007 Report Share Posted March 8, 2007 $masivs[0][0] = $vertiba; Link to comment Share on other sites More sharing options...
Roze Posted March 8, 2007 Report Share Posted March 8, 2007 Var dažādi: $masivs['dimensija1']['dimensija2'] = 'vertiba'; $masivs['dimensija1']['dimensija21'] = 'vertiba2'; vai arī $masivs = array( 'dimensija1' => array( 'dimensija2' => 'vertiba', 'dimensija21' => 'vertiba2' ) ); attiecīgi labi pēc tam var redzēt <pre><? print_r($masivs); ?> Link to comment Share on other sites More sharing options...
Recommended Posts