'How to adjust Multicell in Array FPDF

i need a help on how to make the data inside the array to be in one ligne and same height in multicell

this is the result enter image description here

and this is the code :

  $colored = false;
  foreach($products_info as $row){

      if($colored){
          $this->SetFillColor(218,218,218);              
      }else{
          $this->SetFillColor(255,255,255);
         
      }
    
    $this->Cell(40,15,ucwords($row["libelle"]),1,0,'L',$colored);
    
    $this->MultiCell(40,15,ucwords($row["description"]),1,1,'L',$colored);

    $this->Cell(40,15,number_format($row["prix_unitaire"],3,","," "),1,0,"C",$colored);
    $this->Cell(20,15,number_format($row["quantity"],3,","," "),1,0,"C",$colored);
    $this->Cell(10,15,number_format($row["largeur"],3,","," "),1,0,"C",$colored);
    $this->Cell(10,15,number_format($row["hauteur"],3,","," "),1,0,"C",$colored);
    $this->Cell(30,15,number_format($row["total_ht"],3,","," "),1,1,"R",$colored);
    $colored = !$colored;
  }

this is the old version before i add multicell enter image description here

and this is the code :

      $colored = false;
  foreach($products_info as $row){

      if($colored){
          $this->SetFillColor(218,218,218);              
      }else{
          $this->SetFillColor(255,255,255);
         
      }
    
    $this->Cell(40,15,ucwords($row["libelle"]),1,0,'L',$colored);
    $this->Cell(40,15,ucwords($row["description"]),1,0,'L',$colored);
    $this->Cell(40,15,number_format($row["prix_unitaire"],3,","," "),1,0,"C",$colored);
    $this->Cell(20,15,number_format($row["quantity"],3,","," "),1,0,"C",$colored);
    $this->Cell(10,15,number_format($row["largeur"],3,","," "),1,0,"C",$colored);
    $this->Cell(10,15,number_format($row["hauteur"],3,","," "),1,0,"C",$colored);
    $this->Cell(30,15,number_format($row["total_ht"],3,","," "),1,1,"R",$colored);
    $colored = !$colored;
  }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source