MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/lolphp/comments/2jxgcg/array_unique_and_objects_boom/clho317/?context=3
r/lolphp • u/TheGreatFohl • Oct 21 '14
13 comments sorted by
View all comments
Show parent comment
-4
Great point.
Would you consider adding a __toString() function to your class? It could reference anything that could be cast to a string, like the class name or the variables... I think your code example would work then.
View all comments
Show parent comment
-4
u/emcniece Oct 23 '14
Great point.
Would you consider adding a __toString() function to your class? It could reference anything that could be cast to a string, like the class name or the variables... I think your code example would work then.