An array is an ordered data structure consisting of a collection of elements. Nested array is collection of array. Use this tag for questions related to nested-array.
2
votes
2answers
21 views
Check nested array structure in mock class
I've written a method that basically looks like this:
public function collectData($input, FooInterface $foo) {
$data = array();
$data['products']['name'] = $this->some_method();
...
0
votes
3answers
22 views
PHP - get a KEY of a nested array
I have an array called $plugins that looks something like this :
Array
(
[path/to/file.php] => Array
(
[Name] => somevalue_a
[TextDomain] => somevalue_b
...
0
votes
0answers
23 views
MySQL nested Table, Array, or Object? Not sure if any of these options are possible.
I have a table for users that contains columns for the user's id, username, password and other user information. I would like to add a column to this MySQL table that contains a column referencing to ...
0
votes
0answers
29 views
Restkit nested array mapping fault
I am trying to map following structure:
Plan.json:
{
"id" : "1",
"floors" : [
{
"floor" : "1",
"constrains" :
{
"southWest":
{
"latitude": ...
0
votes
4answers
56 views
convert Nested array into mysql query
I need to generate a mysql insert query with this array , where the column name are the field_name & values are field_values. i tried using implode, here its nested array & troubling me lot.
...
-1
votes
4answers
54 views
Creating Java arrays with the name of a variable [closed]
I am making a plugin for a Minecraft server and I need a way to store players in an array for the arena they are in. For example:
The plugin loads all the created arenas: Arena1 Arena2 Arena3
And I ...
-1
votes
1answer
65 views
Ruby: iterate subarray and count items; write back count into element
I have an XML-File with <pb n="4-DIGIT-NUMBER" ... />. The number being in some cases identical, so I'd like to disambiguate, coming so far, but now problems with counting (do I have the right ...
0
votes
1answer
60 views
redim nested array
i have an array path... this array contains a list of nested array paths. it could look something like this:
path( 0 1 2 3 4 5 6 7 8 )
"1" | 1, 1, 1, 1, 1, 1, 1, 1, 1 |
"2" | 4, 3, 1, 4, 2, ...
0
votes
2answers
80 views
jquery javascript stop an undefined object from being evaluated in nested array iteration
I have an array of arrays and some of the inner arrays have yet another nested array. Some don't. I loop through the top level array elements and IF there is an internal array I loop through them. ...
1
vote
1answer
67 views
1
vote
1answer
362 views
Json.NET: deserialize nested arrays into strongly typed object
I'm writing client application, which should process server responses. Responses are in JSON. I decided to use Json.NET to deserialize them. And I couldn't simplify or modify those responses (on ...
1
vote
2answers
95 views
How do I render a nested array in CakePHP's view?
I have a nested array that is compiled via the model in a CakePHP request. The array can be nested at a variable depth, and the content is to be returned to the user.
Currently the looping and ...
0
votes
0answers
126 views
wijmo chart: how to bind values to a nested array elements
Referring to the code below, I made a wijmo bar chart as an example to the problem I am having. I am trying to bind to the property "Value1" which is a nested child element in the array "data". The ...
1
vote
1answer
143 views
Querying an array of arrays in MongoDB
Say, I have a document like this..
"ID" : "fruit1",
"Keys" : [["apple", "carrot", "banana]]
How do I query for Keys = "carrot". None of the following syntax works.
db.myColl.results.find({ "Keys" ...
1
vote
1answer
55 views
Error in using NSMutableArray
I am trying to populate an NSMutableArray here named "data" with NSArrays. When I try to retrieve I get EXC_BAD_ACCESS. Here is my code for poulating
.h
@property (nonatomic, retain) ...