search

Home  >  Q&A  >  body text

=和==的区别?

$a=$b和$a==$b 有什么区别

phpcn_u251phpcn_u2512882 days ago918

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:39:31

    What is the difference between

    = and ==? -PHP Chinese website Q&A-What is the difference between = and ==? -PHP Chinese website Q&A

    Please watch and learn.

    reply
    0
  • 阿神

    阿神2016-12-24 13:08:44

    左边是将变量$b的值赋给$a。右边是判断$a和$b是否相等,返回的是个布尔类型的值。

    reply
    0
  • Cancelreply