Questions tagged as 'array'

2
answers

How to mount this multidimensional array via foreach

I'll only put the part where I'm having problems! The% w / w I need, needs to be in this format. Example 1: Array ( [atributos] => Array ( [atributo] => Array ( [nome] =&...
asked by 25.08.2015 / 08:04
1
answer

run loop updated with js returning another

Well, the code here is from below where: <html> <head> <style> #main { border:#333; border-width:2px; border-style:solid; } </style> <script type="text/javascript"> var map = Array([0,0,0,0,0,...
asked by 12.06.2015 / 22:17
1
answer

Format Array differently

I have the following array() : Array ( [valor] => Array ( [0] => 433.36 [1] => 433.36 [2] => 433.36 [3] => 433.36 [4] => 433.36 [5] =&g...
asked by 23.09.2015 / 22:10
1
answer

Autocomplete: JSON + PHP

With the codes below my output that comes after typing "Al" is only "Albania", and it comes duplicated in autocomplete. The result that comes in the chrome console is: > {"0":"Albania","country_name":"Albania"} When I run the query in th...
asked by 25.09.2015 / 04:42
1
answer

Split two-dimensional array into 2 simple arrays - PHP

I'm making adaptations in an old system and need to create a new routine to split a two-dimensional array into 2 simple arrays. Let's say that the variable $query receives the array below: $query = array("SELECT * FROM teste WHERE no...
asked by 22.04.2015 / 19:21
1
answer

Error when cleaning and constructing: "uses unchecked or unsafe operations."

Next, I have a "Tray" class in my project which at the time of Clean and Build is displaying the following error: "Trap.java uses unchecked or unsafe operations." I gave one a search and at first it would be a problem to use Generic ArrayList...
asked by 02.05.2015 / 01:30
1
answer

Implement parent class

Well, I researched a lot, I even know how it works, but I could not implement it, I would like a light. I have the classes House and Building, I need to create a parent class Imovel, taking House and Building as daughter classes, follow my code:...
asked by 24.05.2015 / 07:11
1
answer

Add typed values without using array

Create a program that asks the user to type 10 values, add these results and present them on the screen. I've only been able to do with an integer array. #include <stdio.h> #include <stdlib.h> int main() { int i, soma; soma...
asked by 22.07.2015 / 04:29
1
answer

select value in array

Good, Looking at this query: $sql = mysql_query("select A, B, C, D from table"); $row_sql = mysql_fetch_assoc($sql); I want to get column A and put all values in an array: $var = array('value1','value2','value3','value4'); How best...
asked by 12.08.2015 / 15:46
1
answer

Join the Results of an Array

I have a PHP application that takes a Json file and creates an array having: city | neighborhood | city | complement | address | status header('content-type: application/json; charset=utf-8'); $file = "data.json"; $info = file_get_contents...
asked by 02.12.2014 / 21:29