Tagged Questions
0
votes
2answers
46 views
reorder multi-dimensional array in PHP
I have a multi-dimensional array that I need to reorder.
I need to sort the array so that the first thing that will take into account the LEVEL, then SECTION, where SECTION is equal to the ID of the ...
0
votes
1answer
18 views
Making roster program, having issues with creating the arrays, C#
In c#
I am trying to make a simple program that will have a few functions such as adding and deleting members from a roster, search for a member, and display the current # of members.
This will later ...
0
votes
1answer
22 views
Filter array item having max in javascript
My taxDetails object is carrying tax details.
Let's assume, it holds following data as for now.
taxDetails
[0] => name: praveen
amount: 100
[1]=> name: john
amount: 125
...
0
votes
3answers
45 views
How to loop through multidimensional array
I have an array that looks something like this:
Array
(
[apple] => Array
(
[0] => 689795
[1] => September 2012
[2] => 689795
...
0
votes
3answers
21 views
PHP code is removing duplicates from multidimensional array
I have a .txt file that looks like this:
Test = 10849831 = August 6, 2013:
56cake = 0 = August 6, 2013:
Wwe = 812986192 = August 6, 2013:
Test = 346192 = August 9, 2013:
Then, I use the following ...
2
votes
6answers
40 views
Explode txt file into multidimensional array
I have a .txt file that looks like the one below:
Test = 10849831 = August 6, 2013:
56cake = 0 = August 6, 2013:
Wwe = 812986192 = August 6, 2013:
I want to explode the file above to make an array ...
1
vote
1answer
19 views
Find a word in array and store into new array using php?
I have an array like
Array
(
[0] => Canon ProII PE-1000GC (MBL), Metallic Blue Electric Guitar
[1] => Captain Tsubasa DVD Box
[2] => Canon EOS Kiss X4 (550D / Rebel T2i) + Double ...
0
votes
1answer
37 views
Returning an array and storing into another array, creating a multidimensional array
EDIT: I've tried to implemented the solution, but it still doesn't work. Sorry i'm a programming idiot. Thanks for the link to the page.
In my first function databaseBOscreens i am attempting to ...
0
votes
2answers
51 views
Pointer multidimensional array to multidimensional array
In C++, is there a way to convert a float** to a float[][] type? I also would like to know how to convert it the other way around too.
0
votes
2answers
48 views
Checking a value in a basic multidimensional array
This will be a quick one for most of you I'm sure, but I'm banging my head against the wall trying to teach myself multidimensional arrays.
I simply wish to check whether or not ...
0
votes
4answers
38 views
Array Comparison in Php, and find the diff in values
I want to compare two arrays in php. My arrays looks like this
Array (
[0] => Array ( [Id] => 1 [row1] => 1458)
[1] => Array ( [Id] => 2 [row1] => 16)
[2] => Array ( [Id] => ...
0
votes
1answer
51 views
replace with non zero value
I have the following array
Array
(
[2013-08-12] => Array
(
[count] => 0
)
[2013-08-11] => Array
(
[count] => 5
)
...
1
vote
1answer
51 views
PHP putting an array within an array using variable
I'm just wondering, is this correct? I can't find any guide for doing it this way, but I don't know how many elements regIds will have, so it seems like it needs to be done like this. regIds is the ...
0
votes
3answers
44 views
How do I join arrays in PHP?
How do I join arrays? For instance, I have several separate arrays of error below,
$message = array();
$message[] = array('error1' => '<error elementid="file_rename" message="bla bla 1." ...
0
votes
2answers
58 views
Dynamic multi-dimensional array
I have to create a three-dimensional array using class A as element ,class A is defined like below, should I use vector<vector<vector<A> > > or boost::multi_array? Which one is ...