Quantcast
Viewing all articles
Browse latest Browse all 86

PhpSpreadsheet: How to check if a cell has a strikethrough?

How to check in PhpSpreadsheet if a cell has a strikethrough ?

Tried this one:

    $cell0 = $sheet->getCell('C73');    $isStriked = $cell0->getStyle()->getFont->getStrikethrough();    print_r($isStriked);

doesn't work whether the target cell has a strikethrough or not it gives a blank value...


Viewing all articles
Browse latest Browse all 86

Trending Articles