Using your example1.php and replacing with... ['length' => 1, 'width' => 1, 'height' => 100] results in "Container 100x1x100(cm) 10000(cm3)" Whereas ['length' => 100, 'width' => 1, 'height' => 1] results in "Container 100x1x1(cm) 100(cm3)" Is this a bug and/or do the 3 values need to be sorted desc before adding to length, width and height respectively?