Question : I know that in PHP for almost every type of list, we work with Array() , but is […]
Tag: array
Loop is within loop for
Question : for(pass = 0; pass < size – 1; pass++){ for(j = 0; j < size – 1; j++){ […]
Group values from an array in PHP
Question : I have a grid-shaped form that returns the following values inside an Array: array (size=3) 0 => array […]
Check if array contains specific character
Question : I need to check if an array has a specific character (this: |). If it contains, this character […]
Why invert the index of the array in a for, to popular the array, makes the process faster?
Question : I was doing some tests in Java and noticed a very strange behavior. I made a two-dimensional array […]
How to get unique values in a JavaScript array?
Question : In PHP, when I have array with duplicate values, it is possible to get only single values through […]
Invert array (vector) without an external function, ‘manually’
Question : Friends, I always inverted vectors using a helper in an external function (I think the default way), but […]
How to know the array key of the 3 biggest results?
Question : I have this array $qtd = array( ‘acao’ => $acao, ‘aventura’ => $aventura, ‘comedia’ => $comedia, ‘drama’ => […]
JSON equals an associative array?
Question : Are the two the same thing? Or is JSON a more complex library or technique? Answer : […]
Store the positives in one vector and the negatives in another
Question : Make an algorithm that reads a set of 30 integer numeric values and distributes them between two […]