title: create .xls file using php
body: <p>This is what I have:</p>
  
  <pre><code>   $sep = "\t";        //tabbed character
      $fp = fopen('registrars.xls', "w");
  
  $schema_insert_rows = "";
  //printing column names 
  
          $schema_insert_rows.="#" . $sep;
          $schema_insert_rows.="Registrar" . $sep;
          $schema_insert_rows.="Country" . $sep;
          $schema_insert_rows.="Website" . $sep;
          //$schema_insert_rows.="Postal Address" . $sep;
          //$schema_insert_rows.="Contact Number" . $sep;
          $schema_insert_rows.="Email Address" . $sep;
  
          $schema_insert_rows.="\n";
          fwrite($fp, $schema_insert_rows);
  
  // printing data:
      $row = 0; $i = 0; $schema_insert_rows = "";
  
          $schema_insert_rows .= (++$row) . "" . $sep;
          $schema_insert_rows .= $registrarArr[$i] . "" . $sep;
          $schema_insert_rows .= $registrarArr[$i+1] . "" . $sep;
          $schema_insert_rows .= $linkArr[$i] . "" . $sep;
          $schema_insert_rows .= (string)(strip_tags($address)) . "" . $sep;
          $schema_insert_rows .= (string)(strip_tags($phone)). "" . $sep;
          $schema_insert_rows .= "email test";
  
          $schema_insert_rows .= "\n";
  
  
  
  fwrite($fp, $schema_insert_rows);
  
  fclose($fp);
  </code></pre>
  
  <p>The other column works fine but the ones i commented out are not working [for postal address and email address].. I i get rid of the comments, the data will go to the next row though it should be on the same row as the others.. I checked via var_dump to see if there's &lt; br> but there's none.. What's wrong here?</p>