阅读背景:

检测PHP中数组的更改。

来源:互联网 

I've been using __set magic method with protected properties to monitor changes so that my classes know if they have something to save. Is there any way to monitor an array type property for changes? I understand that normally you access the array via a reference and functions like array_push won't trigger the __set method, they'll use a reference to the array.I've been using __set magic method with protect




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: