对象笔记

$b = $a = new A;
当变量a和变量b指向同一个对象,改变a中属性值,b也会跟着改变,使用clone浅复制
使用__clone深复制
posted @ 2020-06-28 18:07  仁义礼智信的  阅读(101)  评论(0编辑  收藏  举报