Search Result

Collapse
5 results in 0.0014 seconds.
Keywords
Members
Tags
multidimensional
  •  

  • SquidgeyBall
    started a topic Help with multidimensional array please

    Help with multidimensional array please

    I have created a multidimensiona l array as follows:

    string[,] myarray = {{"TestArray1Pa rt1", "TestArray1Part 2"},{"TestArray 2Part1", "TestArray2Part 2"}};

    Basically what I want to do is show a message box which will display the first two parts of the array (TestArray1Part 1 & TestArray1Part2 ), then loop to show the next parts.

    I am currently using a foreach statement...
    See more | Go to post

  • rahulephp
    started a topic How to print multidimensional array?
    in PHP

    How to print multidimensional array?

    Hi
    I need to print below array in the following manner.

    Output would be:

    Property Name: 1
    Property Address: 1
    Price: 1
    Property Size: 1
    URL 1

    Property Name: 2
    Property Address: 2
    Price: 2
    Property Size: 2
    URL 2

    Here is array:
    Code:
    Array
    (
        [temp_property_name] => Array
            (
    ...
    See more | Go to post

  • How to check if a Single Array is part of a Multidimensional Array?

    So here is my problem

    I do not know if there is another way to solve this without using arrays....but I am assuming that I DO need to use arrays....Anywa ys


    FIRST ARRAY (SINGLE):
    Code:
    $results = array($question1,$question2,$question3);
    SECOND ARRAY (MULTI-DIMENSIONAL)
    Code:
    $baseball = array( array("male","female"), array("right","middle"), array("
    ...
    See more | Go to post
    Last edited by Atli; Nov 10 '09, 11:44 AM. Reason: Added [code] tags.

  • Multidimensional array index lookup in a foreach loop

    Code:
    Item[,] itemArray;
    
    // initialising code here
    // fill with data
    
    foreach (Item item in itemArray)
    {
    // I need to access the [x,y] indexes here:
    // x_index = ??
    // y_index = ??
    // item.DoSomething(x_index, y_index);
    }
    See more | Go to post

  • Sorting two dimentional array and displaying result

    Code:
    function abc()
    {
    	var tstr1 = new Array();
    	var vari=50;
    	var htmlText  ='';
    
    		for(var i=0; i<vari; i++)
    		{
    			tstr1.push(["a" + i, "second value" + i]);
    		}
    
    					tstr1.sort(function(a, b) 
    								{	//sorting first value in alphabetical order and the associated value
    								  return a[0] < b[0]
    									? -1
    ...
    See more | Go to post
    Last edited by Dormilich; Feb 6 '09, 10:04 PM. Reason: added [code] tags
Working...