My first ever question on here as I’m completely stuck, so apologies if I leave out any key information – please let me know! I am creating a PHP Battleships game and trying to use full OO. I’m really close, however, an array for one of my classes does not hold any updates I make to it. First off, I
Tag: getter-setter
how to hide properties of class during serialization?
can i override function that is responsbile for serializing and Php class to an array/stdclass so that i can implement my own logic “like hiding certain attributes based on condition) class UserModel{…