Avatar of Alex Lord
Alex Lord
 asked on

Update array on every value on foreach

 foreach($_POST as $key => $val){  
                $k = $key;
                $v = $val;

                $inputs = array(
                    $k => "test"
                );
            }

Open in new window


my question is how can i update the array on every row.

k equals a diffrent id every time it goes thrught the post, but where i have test will be a function, i need them all to be redireted to this function. but it only doing the last post
* arraysPHP

Avatar of undefined
Last Comment
Zakaria Acharki

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Zakaria Acharki

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Alex Lord

ASKER
Thank you :)
Zakaria Acharki

You're welcome, glad to help.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23