Box\Spout\Writer\Common\Helper\CellHelper::isEmpty PHP Метод

isEmpty() публичный статический Метод

public static isEmpty ( $value ) : boolean
$value
Результат boolean Whether the given value is considered "empty"
    public static function isEmpty($value)
    {
        return $value === null || $value === '';
    }

Usage Example

Пример #1
0
 /**
  * Returns whether the given row is empty
  *
  * @param array $dataRow Array containing data to be written. Cannot be empty.
  *          Example $dataRow = ['data1', 1234, null, '', 'data5'];
  * @return bool Whether the given row is empty
  */
 private function isEmptyRow($dataRow)
 {
     $numCells = count($dataRow);
     return $numCells === 1 && CellHelper::isEmpty($dataRow[0]);
 }
All Usage Examples Of Box\Spout\Writer\Common\Helper\CellHelper::isEmpty