# LaVOZs

The World’s Largest Online Community for Developers

'; Newest 'multidimensional-array' Questions - LavOzs.Com

# Questions tagged [multidimensional-array]

Multidimensional-arrays can be described as multi-dimensional tables. Each index used in order to find a given element is called a dimension.

• ### Assigning values in a single row of 2-D array copies it to all rows [duplicate]

I created a 2-D list in Python using x = [[0] * 4] * 4 print x # Output:[[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] When I try to initialize only the first list in the array to [0,1,2,3]...
• ### Remove elements from array with elements between times range in php

I try to get all elements from another array thats values are between range of time whitout results. This is an example of source array: Array ( [0] => Array ( [start] => 12:00:...
• ### Size of a Typedef'd 2-Dimensional Array

Given a typedefined 2-dimensional array: typedef float Matrix3x3[3][3]; If I want to get the total number of floats in Matrix3x3 I feel like I should be able to just do: sizeof(Matrix3x3) * sizeof(*...
• ### Difference between 2d string array and Array list of string

Im using ArrayList<ArrayList<String>> Stringdata = new ArrayList<ArrayList<String>>(); to make a 2d array of string how is it different from using String Stringdata[][] = ...
• ### Sort multidimensional array with tricky conditions

I'm a new to php. I'm trying to sort a multidimensional array with some conditions but I have no idea where to start. Users array Array ( [0] => Array ( [uid] => 1 ...
• ### Need to find all occurances of values in the multidimensional array [duplicate]

However the below question is answered in this link PHP multidimensional array search by value, but the answer gives single occurrence of the value. Is there any possible solution to get all ...
• ### php multi dimensional array unique [duplicate]

I am facing Problem with removing the duplicate value from the multidimensional array. Array ( [524] => Array ( [0] => 526 [1] => 530 [2] =&...
• ### How to sort a two-dimensional array (2d array) by date in ruby on rails?

I have a two dimensional array which has following structure array = [ ["2019-03-11","00986587","LBP"], ["2019-02-23","00462421","USD"], ["2019-05-26","00357853","EUR"], ...
• ### json wihin multiple loop issue on basis of id

I'm getting data from third-party API. From the first loop, I'm getting all the bookings data. and within a loop, I want to get booking detail of each booking id. But when I'm trying to create an ...
• ### how to know where all connections of 3 lines or more are in a 2 dimensional grid [on hold]

I am working on a game on python and I want to know where all three or more same value values are "connected" in the 2 dimensional array e.g: a[1][2] = 1 a[1][3] = 1 a[2][3] = 1 a[0][0] = 1 a[1][0] =...
• ### Why how do i this error when trying to free an array of strings

I would like to know how to free this array properly so I dont get this next error when i compile the file. The "ooo" are the strings that i stored in the array ooo ooo ooo ooo Error in `...
• ### PHP multidimensional array search by value and then return sum of values

Suppose we have this two multidimensional arrays \$hotel = array( array( 'name' => 'hotel one', 'hotel_price' => '100' 'hotel_child_price' => '50' ), array( 'name' => '...
• ### PHP Combining multidimentional arrays of different lengths

Thank you in advance, I have been trying to figure this out for way too long. What I am looking to create, is a CSV table with multidimensional array data. I am looking to make the table quite like ...
• ### Pull an element of an array according to one of the matches [duplicate]

I have two arrays: \$productIds = [ ['product_id' => 12, 'price' => 1234], ['product_id' => 13, 'price' => 1235], ['product_id' => 14, 'price' => 1236] ]; \$ids = [12, 14]...
• ### Can I vectrorise with multidimensional arrays in matlab [on hold]

I want to write a function which computes a Greens function in Matlab. I'm thinking that it was to be done with lots of for loop, is there a way I can vectorise it for speed?