Questions tagged as 'array'

3
answers

Where in an array

I have the following Query: SELECT u.user_nome FROM tb_Usuario u WHERE u.user_ativo = 1 I need one more clause where where it compares a id of the user. However, I get this id through array , how do I make that...
asked by 08.11.2016 / 18:31
1
answer

PHP - Array - Vertical Keys for Horizontal

Situation I have an array as follows: Array ( [1] => Array ( [tree] => Array ( [tb_agenda_hora] => 2, [tb_agenda_fase] => 1, [tb...
asked by 12.06.2015 / 21:35
1
answer

Help with animation as you scroll with javascript

I have a vector image <img src="images/first-page/vectors/waves-723178.svg" alt="Imagem vetorial decorativa" class="vector-wave"> and it is positioned to the left of the screen .vector-wave { position: relative; transform: t...
asked by 11.06.2015 / 05:35
1
answer

1D array for Bitmap

I've been working on an FPGA project that sends an array (1D) of Bytes from a grayscale image to the PC. Well, I made a simple code with some image to simulate the sending and receiving of an array and the error remained: System::Void button1_...
asked by 27.04.2016 / 03:34
1
answer

Is it possible to know if a two-dimensional array is empty?

Basically my doubt is already cleared in the question. That's it, I wonder if can you tell if a two-dimensional array is empty? Thank you in advance!     
asked by 19.05.2016 / 02:03
1
answer

How to remove an item in a position from an array? [duplicate]

Example: string[] x = {"3","2","1"}; I want to take only the "2" item from the array x , resulting in: x = {"3","1"};     
asked by 18.11.2017 / 23:44
4
answers

Language C - Prime numbers in vectors

I'm solving exercises, in C language, on vectors. The exercise is as follows: Make a program that loads a vector of 10 integers, just show the prime numbers and their respective positions. I have decided the exercise, but my code is only c...
asked by 09.07.2014 / 23:00
1
answer

In a repetitive structure are there differences between working with Object or Array?

When I query the database by PHP and want to return that data with while , I usually use fetch_object() , which returns the data in type object . For example: $query = "SELECT * FROM TABELA"; $exect = $conn->query($query);...
asked by 14.12.2015 / 12:03
1
answer

Orderby in an array

Friends, I'm trying to edit a array , so that it presents the information in ascending or descending order. I'm doing the following: $Recent_Page = get_post_meta(get_the_ID(), 'imic_home_recent_property_no', true); query_posts(array('...
asked by 03.12.2015 / 19:47
1
answer

What are the advantages of using SplFixedArray instead of an array?

What are the advantages of using SplFixedArray instead of an array? What are the advantages of setting a value for an array (in PHP)? Example with array : $arr = array(); $arr[0] = 'Stack'; $arr[1] = 'Overflow'; $arr[2] = 'blabl...
asked by 10.07.2015 / 13:55