"I have an array of orders, each with 'total' and 'status' keys. I want to: filter to only 'completed' orders, then sum their totals. Show me how to do this with array_filter and array_reduce combined, and then show me the equivalent using a plain foreach loop — and tell me honestly which one you'd actually choose for a real project and why."
