Salve,
sapete dirmi perché non funziona?
Codice PHP:
$listArray = array (
array (
'id' => 1,
'nome' => 'filippo',
'stelle' => 3
),
array ('id' => 2,
'nome' => 'stefania',
'stelle' => 3
)
);
if(array_search(1,$listArray)){
echo 'ciao';
}
Salve,
sapete dirmi perché non funziona?
Codice PHP:
$listArray = array (
array (
'id' => 1,
'nome' => 'filippo',
'stelle' => 3
),
array ('id' => 2,
'nome' => 'stefania',
'stelle' => 3
)
);
if(array_search(1,$listArray)){
echo 'ciao';
}