change the value of the array |
My Array :
PHP Code: Array I want to change the value of each income_country: PHP Code: foreach ($data as $key => $value) Results : PHP Code: Array why is the result always added to each array?
You need to add it inside of the foreach loop.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Sorry missed your first foreach, do a var_dump() of your arrays to see what is being inserted.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
The $z array is being preserved in the foreach loop. Change it to this:
PHP Code: foreach ($data as $key => $value)
(05-13-2019, 11:20 AM)Wouter60 Wrote: The $z array is being preserved in the foreach loop. Change it to this: this works thank you very much |
Welcome Guest, Not a member yet? Register Sign In |