Results 1 to 1 of 1

Thread: multidimensional array merge using PHP

  1. #1
    Join Date
    Jun 2009
    Posts
    16

    multidimensional array merge using PHP

    hai friends

    I need one solution for multidimentional array merging option using php

    Please send me any samples multidimensional array merging
    ==============
    multidimensional array merge using PHP
    ---
    Here is the sample code
    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);
    }
    ?>
    Thanks & regards
    Lokananth
    Last edited by Alan; 29 Jun 2009 at 03:50 PM. Reason: Added PHP tags

Similar Threads

  1. insert values from indexed array into html form button (PHP)
    By boognish in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 10 Jan 2006, 07:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •