How to show common value in array in php | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How to show common value in array in php

like $a=array (33,342,45,33) $b= array (33,107,45,453)

27th Feb 2019, 8:59 AM
sachin Kumar gautam from of mirgauti
sachin Kumar gautam from of mirgauti - avatar
1 Antwort
+ 3
$result = array_intersect($a, $b);
27th Feb 2019, 12:40 PM
Diego
Diego - avatar