title: fpdf cell not dispaying correctly a concatenated php string
body: <p>I have a fdpf cell $DocRef->Cell(23,10,'Re: Patient: '.$patientdata,0,0,'L');</p>
  
  <p>$patientdata is obtained from a mysql statement</p>
  
  <p>if I use the following and place $patientdata in the above cell I get the desired result for example it will be displayed on the pdf document as Smith John Michael</p>
  
  <pre><code> if (($uppatientID &lt;&gt; '') and ($uppatientID &lt;&gt; 0))
    {
      $patientsql =   "
        SELECT
          Concat_Ws(' ', `PatientLastName`, `PatientFirstName`, `PatientMiddleName`)
        FROM
          `Patient`
        Where
          `PatientID` = $uppatientID
      ";
  
      $patientresult=mysql_query ($patientsql) or die (mysql_error ());
      while ($patienttrow=mysql_fetch_row($patientresult))
        {
          $patientdata = $patienttrow[0];
        }
      mysql_free_result($patientresult);
     }
    else
      {
        $patientdata = ' ';
      }
  </code></pre>
  
  <p>Because the patient names are encrypted I need to do the following to decrypt them </p>
  
  <pre><code>if (($uppatientID &lt;&gt; '') and ($uppatientID &lt;&gt; 0))
    { 
      $patientsql =   "
        SELECT
          `PatientLastName`, `PatientFirstName`, `PatientMiddleName`
        FROM
          `Patient`
        Where
          `PatientID` = $uppatientID
      ";
  
      $patientresult=mysql_query ($patientsql) or die (mysql_error ());
      while ($patienttrow=mysql_fetch_row($patientresult))
        {
          $PatientLastNames = $patienttrow[0];
          $PatientFirstNames = $patienttrow[1];
          $PatientMiddleNames = $patienttrow[2];
  
          $patientdata = $PatientLastNames.$PatientFirstNames.$PatientMiddleNames;
  
        }
      mysql_free_result($patientresult);
     }
    else
      {
        $patientdata = ' ';
      }
  </code></pre>
  
  <p>but the cell above now displays them on the pdf document with a lot of white space between each name, this only happens when I join each string using php . to join them. Is there some formatting I can use to correct this.</p>
  
  <p>Interestingly if I select the name on the pdf document and paste it then all the added white space is removed</p>
  
  <p>Thanks,  </p>
  
  <p>Ivan</p>