Questions tagged as 'array'

2
answers

Create arrays within the while

I have the following code: $urls = file_get_contents('https://www.google.com/#q=teste'); // teste é a palavra que vai pesquisar no google preg_match_all('/\b(?:(?:https?|http):\/\/|www\.)[-a-z]*.com.br/i', $urls, $content); // filtra ap...
asked by 26.10.2016 / 21:25
2
answers

I need my function in php to be recursive

I need this function to be recursive, I'm a beginner in php and I'm not really understanding how I can do this. : <?php function mostraArray() { $cena=array($_REQUEST["numeroa"], $_REQUEST["numerob"], $_REQUEST["numeroc"], $_R...
asked by 19.10.2016 / 05:01
1
answer

Display value of an object item using Javascript

I'm a beginner in Javascript, I'm not sure how to display the value qtdeEstoque of listaTamanhos . Can anyone help me? alert("Tamanho: " + lista.Value + " / Estoque: " + data[i].qtdeEstoque); listSizes: id qtdeEstoque C...
asked by 13.10.2016 / 14:34
2
answers

How to store the value of the indexes of this JSON in variable?

I have a function in php that returns this to me. [{"id":81,"username":"usuarioteste23"}] How can I save a Username and variable in a variable? Thank you.     
asked by 21.01.2016 / 11:57
1
answer

Picking items from an array converting to UTF8

Hello! My problem is this: I have a list of values in an external php file and when I use an include to call the values in my template the characters with accents are replaced with queries. I would like to know if there is a function or another...
asked by 05.11.2016 / 22:23
1
answer

How do I add values in a vector?

Well ... I know how to add values into a vector. Actually, that's not quite it. I'm learning Java a short time ago and started working with netbeans. The teacher requested an activity to create a registration form for students. So far the cod...
asked by 21.09.2016 / 23:21
2
answers

How to migrate data between views using Tab Bar Controller (swift)

I have a Tab Bar Controller with 3 buttons. How do I take an array, loaded from data stored in Core Data, from a view (button 1) to another view (button 2)?     
asked by 15.10.2016 / 00:01
1
answer

How to save data from a JSON consisting of arrays?

Hello. I have a JSON that has the following structure: { "_id": { "$oid": "3432fa43242" }, "posts": [{ "thread": { "uuid": "2911da", "url": "http://www.google.com", "site_full": "opiniaoenoticia.com.br",...
asked by 25.09.2016 / 22:51
1
answer

Question about queuing in C

Can someone analyze my code and see what could be wrong ?. It's a simulation exercise I got to do in college. Error: The code executes, but it goes into looping. Whats the problem? Code: #include <stdio.h> #include <stdlib.h> #d...
asked by 24.09.2016 / 20:38
1
answer

PHP - How to traverse an array of spokes?

I have the following code: <?php while($row = mysql_fetch_array($alunosTurma)){ ?> <tr> <td><?php echo $row['NM_NIS_ALU']; ?></td> <td><?php echo $row['ST_NOME_ALU'];...
asked by 23.09.2016 / 03:07