It would make my life substantially easier if I could return both a $requestorID and $requesteeID - along with the value which equals $friendRequestDecision[$memberID]…
you do have two values: name => value so, you can also use the name as a value In your example, I can see $_POST[‘friendRequestDecision’] should be an array with defined keys.
Turns out I found another way to do things while I was waiting.
Since I have things working the other way, and since I have 1,000 lines of tested, working code, I’m not too inclined to start “refactoring” just yet!!
But if the swelling in my brain ever subsides, maybe I will re-open this thread and see if I can indeed do things a more efficient way?!