Questions tagged as 'array'

1
answer

Arrays in a single index

I've done this question today , helped me a lot, now I have the code: foreach ($tokens as $row) { $token1[] = $row['oauth_token']; $token2[] = $row['oauth_token_secret']; } var_dump($token1); var_dump($token2); And it returns me:...
asked by 25.07.2017 / 23:43
1
answer

Array that is becoming object [closed]

When using the json decode function in a json, I'm having a problem. When the numbering is perfectly in order (0,1,2,3 ...) it is classified as arra: [2016-08-01] => Array ( [0] => 07:00:00 [1] => 07:20:00...
asked by 20.07.2016 / 19:31
3
answers

Group Data from a PHP Array

I want to group the data with the same code as this array, I've tried several ways, but so far nothing. Anyone have an idea? array (size=5) 0 => array (size=2) 'CODIGO' => string '231' (length=3) 'NOME'...
asked by 23.06.2016 / 22:33
3
answers

insert multiple records checkbox mysql

I'm trying to insert information into multiple checkbox information at once, for example a news item is related to more than one category, so I just select the categories and save, but this is giving this error, Notice: Array to string convers...
asked by 15.07.2016 / 03:51
1
answer

Extract php returns Undefined variable on detail page

I'm having the following undefined variable error, I'm developing a shopping cart using URl Friendly. Everything was going well until I got the part of returning all the indexes of my database product, I'm using the extract function which in the...
asked by 18.10.2016 / 15:48
1
answer

How to save information in an array?

Java masters, I'm learning about arrays, vectors, and would like to know what happens to my code as I create an array to get six names and six positions for the matrix employees. But when I print, I just print jobs and are not printing the names...
asked by 20.10.2016 / 20:16
2
answers

Generate array with table contents with jquery

Hello I'm trying to retrieve the elements of a table and move to a jquery array that will be used in ajax I create the td dynamically: var newRow = $("<tr>"); var cols = ""; cols += '<td class="tdProduct...
asked by 17.04.2016 / 01:00
1
answer

Combobox is loading wrong array information

I made a C # (WinForms) application to load the marks according to the type of vehicle that is selected (car, motorcycle or truck) in a combobox. I put the following code at a button: private void btnCheck_Click_1(object sender, EventArgs e)...
asked by 13.04.2016 / 16:47
2
answers

How to expand an array_shift beyond the number of indexes?

I have a question. I put the code just below before starting a while but inside the loop, when calling array_shift($cores) , it applies the classes while loop is <= that the amount of indexes, that is, índice 4 it n...
asked by 21.12.2015 / 21:30
1
answer

PHP array_merge multi-level. How to make?

I have the following array : $arrIni["ENV"]="US"; $arrIni["sap_db_server"] = "192.xxx.x.xx"; $arrIni["local_db_server"] = "localhost"; $arrIni["local_db_username"] = "root"; //Default settings...
asked by 09.05.2016 / 20:07