Total members 11895 |It is currently Sun Dec 22, 2024 3:05 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





multidimensional array merge using PHP

Code:
<?php
$tstats
=array ( "160x600" => array ("0" => "21","1"=> "1" ,"2" => "0" ,"3" => "0"),
 "300x250" => array ( "0" => "32" ,"1" => "2" ,"2"=>"0","3"=>"0" ) );
//$products=array ( "160x600" =>array ("0" => "21","1"=> "1" ,"2" => "0" ,"3" => "0" ));
//$result="";
while(list($k, $s) = each($tstats))
{
$prodects1=array ($k=>$s[0]);
///$result=array_push($tstats, $prodects1);
print "<br>";
//print_r($tstats);
}
?>





Author:
Newbie
User avatar Posts: 23
Have thanks: 1 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : multidimensional array merge using PHP
 Multidimensional Arrays in JSP     -  
 Multidimensional arrays in Java     -  
 lists merge     -  
 merge sort implementation in C++     -  
 Merge two or more arrays recursively     -  
 How to merge the data into file     -  
 Java merge sort example     -  
 Array difference for associate array     -  
 compare an array with another array?     -  
 Imploding an Array     -  



Topic Tags

PHP Arrays
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com