title: PHP Spreadsheet - Get Underline effect
body: <p>I need to check a cell with the effect underline or not.</p>
  <p>I'm trying this code:</p>
  <pre><code>$reader1 = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
  $workbook1 = $reader1-&gt;load($file1);
  
  $worksheet1 = $workbook1-&gt;getSheet(0);
                          
  $cellunderline = $worksheet1-&gt;getCellByColumnAndRow(1, 1)-&gt;getStyle()-&gt;getFont()-&gt;getUnderline();
  
  if($cellunderline){
     // The cell is underline true
  }
  </code></pre>
  <p>I have testing with the $cellunderline with the value:</p>
  <p><a href="https://i.stack.imgur.com/h3F14.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h3F14.png" alt="enter image description here" /></a></p>
  <p>And also I have testing with the $cellundeline value:</p>
  <p><a href="https://i.stack.imgur.com/XcfUG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XcfUG.png" alt="enter image description here" /></a></p>
  <p>The problem is always the $cellunderline is true. I have tried to set the result of $cellunderline in a new cell to see the value but it's empty in the document.</p>
  <p>I'm not sure what is happen and why is not working.</p>
  <p>Please Could you help me with this issue?</p>
  <p>I use the php library phpspreadsheet. The documentation <a href="https://phpspreadsheet.readthedocs.io/" rel="nofollow noreferrer">here.</a></p>