How do I json encode private properties in php?

后端 未结 4 1746
独厮守ぢ
独厮守ぢ 2020-12-21 01:29

I am working with doctrine 2 and zend framework 1.11. Public properties are discouraged in Doctrine 2, so I made my entity properties private. However I have just learned th

4条回答
提交回复
热议问题