Which is more efficent PHP: array_intersect() OR array_intersect_key()
Posted
by
Jordan Rutty
on Stack Overflow
See other posts from Stack Overflow
or by Jordan Rutty
Published on 2011-01-08T18:47:37Z
Indexed on
2011/01/08
18:53 UTC
Read the original article
Hit count: 188
php
Is it more efficient to use the key intersect or the value intersect if both key and value have the same contents for example:
Array
(
[743] => 743
[744] => 744
[745] => 745
[746] => 746
[747] => 747
[748] => 748
)
Is there any difference in performance in using one or the other with the same values. Similar to the difference of using double or single quotes?
© Stack Overflow or respective owner