For more information about how to use = in php and how to use it in php
When it is relatively simple type (such as String int float bool), it determines "equal & same type"
$ Num1 = 123; $ num2 = 123; $ num3 = '000000'; var_dump ($ num1 = $ num2); // output bool (true) var_dump ($ num3 ===$ num1); // output bool (false) because $ num3 is a string $ num1 is an integer
When comparing objects, you can determine whether to point to the same object"
Class Person {public $ name;} $ p1 = new Person (); $ p1-> name = 123; $ p2 = new Person (); $ p2-> name = 123; var_dump ($ p1 ===$ p2); // output bool (false). These two objects, although both of them are of the Person type and have the same value as var_dump ($ p1 = $ p2 ); // output bool (true). The values of the two objects are the same.
The above is the use of = in php introduced by xiaobian. I hope it will help you. If you have any questions, please leave a message and I will reply to you in a timely manner. Thank you very much for your support for the help House website!