I have this array called $addon_array, that when i use var_dump shows up like this
array(10) {
["ext_token"]=> string(5) "floor"
["ext_token_child"]=> string(6) "carpet"
["concrete"]=> string(1) "4"
["cement"]=> string(1) "3"
["sand"]=> string(1) "2"
["wood_4_2"]=> string(1) "4"
["wood_8_2"]=> string(1) "2"
[0]=> string(0) ""
["brick"]=> string(3) "100"
["carpet"]=> string(1) "3"
}
What I have bee trying to do most of the night is try and figure a way of cycling through all the different elements of the array (except ext_token and ext_token_child) and multiply each number via another variable called $qty (which can be anything, it doesn't matter).
Then I want them put in a new array again along with their corresponding columnNames (cement or sand etc...)
I think it is jsut the simple case of just performing a foreach loop on each element, but I can't seem to be able to put them back into a new array.
Thanks for any and all help