I would like to get only the values that are duplicated in the array
I'm trying to do this:
$cdCursos = array(1, 2,3,4,5,3 );
echo "<pre>";
print_r( $cdCursos );
echo "</pre>";
$withoutDup = array_unique($cdCursos);...
I have the following code in C ++:
#include <iostream>
using namespace std;
int main (void){
int e[5] = {10,20,30,40,50};
for (int i = 0; i <= 99; i++){
if ( i in e ) cout <<...
I am with pending exercise to find the largest element in a fixed vector of 10 elements.
But when I declare the integer of the vector works, but when I ask the user to enter the values it does not work.
int i, v[10];
int maior = v[0];
for(i =...
In the site I'm creating I have a form where people can add multiple topics. My problem is when a second or more topics are created because only the first one goes to the bank and I can not get the others inserted.
The code I'm doing is this...
I have a question regarding an array, I have an array that keeps several arrays inside, this is the result:
Array (
[0] => Array (
[membro_id] => 1465
[membro_nome] => Gustavo Silva de Oliveira
[membro_est...
I have an API with some information and I want to get the genre: Samba / Pagode
stdClass Object
(
[id] => 46484422
[title] => Raça Negra e Amigos II (Ao Vivo)
[upc] => 7891430177379
[link] => https://www.deezer.co...