Posts by user138137 • 1 point
1 post
-
0
votes1
answer147
viewsA: function to convert object into array does not loop into foreach
There is no logic error in your function, but if you say you are not entering foreach, the most likely reason is that the properties of your object are private. A foreach loop only accesses public…