Link to home
Start Free TrialLog in
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
ASKER CERTIFIED SOLUTION
Avatar of Zakaria Acharki
Zakaria Acharki
Flag of Morocco image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alex Lord
Alex Lord

ASKER

Thank you :)
You're welcome, glad to help.