php add to array x times -


i have modified dimensions/shipping calculator , got working require except have hit hurdle can not find solution too.

what need pass

 $b->add_inner_box($inner_l,$inner_w,$inner_d); 

x number of times (set buy cycle value , $count loop)

this passed

public function add_inner_box($l,$w,$h) {     if ($l > 0 && $w > 0 && $h > 0) {         $this -> inner_boxes[] = array(             "dimensions" => $this -> sort_dimensions($l,$w,$h),             "packed" => false         );     }     return true; } 

i have looked @ arr.push , other options don`t think these work in situation, can tell novice , guidance add $b->add_inner_box array x times

if use

$b->add_inner_box($inner_l,$inner_w,$inner_d); $b->add_inner_box($inner_l,$inner_w,$inner_d); $b->add_inner_box($inner_l,$inner_w,$inner_d); 

within script works not work in aplication.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -