Mojilo Mojilo - 2 months ago 10
PHP Question

array_intersect_key with three array in php

I have three array from dynamic data in php for example :

array1 = array('10-11-2015'=>23.6,

array2 = array('10-11-2015'=>8.7,

array3 = array('10-11-2015'=>5.8,

I just need common keys from this three array

newarray = array('10-11-2015','12-11-2015');

I use
but it is for only two array.

How I can get it form three or more array ?


Something like this?

array_keys(array_intersect_key($array1, $array2, $array3));