PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
So... was that the problem then? Or something else?
Moral: avoid "simplifying" code when posting for help because you might accidentally change stuff. If you don't know the source of the problem then how do you know that the simplified code will have the same problem too?
I was building one non-OOP shopping cart, and figuring out how to deduct prices of the removed articles from total price.
It just did not work because I accidentally first unsetted the array element and then called it elsewhere. I was looking for the error in the wrong part of the code.