2阵列之间PHP的匹配值 [英] Php match values between 2 arrays

查看:91
本文介绍了2阵列之间PHP的匹配值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

家伙,我这里有一个很尴尬的局面,我不知道是否我是采取正确的做法还是不..我试图匹配2阵列之间的值,然后如果else语句运行......这里的云是我我试图做

Guys i have a very awkward situation here , i am not sure whether am i taking a right approach or not.. i am trying to match the values between 2 arrays and then running if else statement... here's goes what i am trying to do

$array1 = array('html','php','js','css');
$array2 = array('php','python','html','java');

我想是使一张支票,其中这2阵列的值相匹配给对方。
  像PHP和HTML是常见的两种,并在那里不匹配。

what i want is to make a check where the values of these 2 arrays matches to each other. like php and html is common in both and also where it doesn't match.

感谢

推荐答案

您的意思是像一个路口

这篇关于2阵列之间PHP的匹配值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆