Questions tagged as 'array'

6
answers

How to get unique values in a JavaScript array?

In PHP, when I have array with duplicate values, it is possible to get only single values through the function array_unique . Example: $array = ['a', 'b', 'b', 'c', 'c']; array_unique($array); // ['a', 'b', 'c'] But I neede...
asked by 01.09.2016 / 14:48
6
answers

What's the difference between declaring an array with "array ()" and "[]" in JavaScript?

In JavaScript we can declare an array in two ways: var matriz = new Array(); and var matriz = []; What is the difference between the two and what are their consequences? This question is being posed for the purpose of documenting...
asked by 04.03.2014 / 21:48
3
answers

Why in the C language array [6] equals 6 [array]?

Note: Question I saw in the SO in English , but I found it interesting to post here (because we do not have many C questions yet): Because in C language, does this code print "true"? #include <stdio.h> int main(void) { int reais...
asked by 29.01.2014 / 16:11
2
answers

What is the difference between array and array?

in>?     
asked by 28.08.2017 / 18:59
6
answers

How to do a search by ignoring accent in JavaScript?

Suppose I have a list of words in JavaScript (if necessary, already sorted by collation rules ): var palavras = [ "acentuacao", "divagacão", "programaçao", "taxação" ]; Notice that I have not used cedilla ( ç ) nor...
asked by 04.02.2014 / 01:48
4
answers

How does the current function work?

It's been a while since I've always used the current() function in PHP to get the first element of the array (which in fact is not its functionality since it returns the current pointer in array is) and I've been noticing something tha...
asked by 10.07.2014 / 13:57
3
answers

Deserialize JSON Array in an Object Array

Good afternoon, I decided to ask because I have been caught in this for 3 days and no matter how much I have searched, I have not found a solution to my problem. Access a Web Service via C #, HttpClient, and get a Json in the following format:...
asked by 29.01.2016 / 18:44
2
answers

What is the difference between String [] args and String args []?

What is the difference between the statements String[] args and String args[] in Java?     
asked by 06.12.2016 / 13:28
3
answers

How to randomly color DIVs with a color Array in javascript?

I created a function that exchanges colors (pulled from an array ) in certain elements of the page (which are also in array ), changing the colors of the elements one after another. I wanted to do something different, like: Sort the element an...
asked by 14.02.2014 / 15:39
3
answers

How to do a search ignoring accentuation in Python?

Suppose I have a list of words in Python (if necessary, already sorted according to the collation rules): palavras = [ u"acentuacao", u"divagacão", u"programaçao", u"taxação", ] Notice that I have not used cedilla ( ç...
asked by 08.01.2014 / 21:01