I want to intersect array, the result will go to another array.
So I've written: $result = array_intersect($arrayone,$arraytwo);.
If I make count($result) it returns a correct value, but if I make $result[0] it returns the following notice: Notice: Undefined offset: 0.
var_dump($result);to inspect the variable.