[英]How to check php multidimensional array values are same or not?
My array is like this, 我的数组是这样的,
Array
(
[0] => Array
(
[con_id] => 44
)
[1] => Array
(
[con_id] => 217
)
[2] => Array
(
[con_id] => 217
)
[3] => Array
(
[con_id] => 217
)
[4] => Array
(
[con_id] => 97
)
)
I want to check all the con_id
are the same then, return true
or return false
. 我要检查所有
con_id
是否相同,然后返回true
或false
。 Is there any built-in function in php for doing this? 有没有内置的功能在PHP中做到这一点?
Thanks in advance. 提前致谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.