How to judge that objects are identical in PHP?

From , 5 Years ago, written in PHP, viewed 248 times.
URL https://pastebin.vip/view/2bd2e337
  1. serialize($a) === serialize($b)
  2. //或者
  3. json_encode($a) === json_encode($b) //这个方法忽略同一个类的实例

Reply to "How to judge that objects are identical in PHP?"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website