This PHP code defines a Warehouse class and a requestBottles function to distribute a given number of bottles equally among different sections of a warehouse.
Example Usage
$warehouse = new Warehouse([
'section1' => 2,
'section2' => 5,
'section3' => 10
]);
$warehouse->shipmentBottles(11);
Running the Code
php index.php