troubleshooting Question

Update array on every value on foreach

Avatar of Alex Lord
Alex Lord asked on
* arraysPHP
3 Comments1 Solution80 ViewsLast Modified:
 foreach($_POST as $key => $val){  
                $k = $key;
                $v = $val;

                $inputs = array(
                    $k => "test"

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
Zakaria Acharki
Analyst Developer
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros