davidvandertuijn/empty_except_zero

1.0 2019-05-30 16:49 UTC

This package is auto-updated.

Last update: 2025-03-01 00:43:21 UTC


README

Total Downloads Latest Stable Version License

Empty Except Zero

The “Empty Except Zero” tool is designed to streamline data management by identifying and handling numerical values in datasets. This functionality is particularly useful in scenarios where it’s important to differentiate between zero values and truly empty or null entries.

"Buy Me A Coffee"

empty empty_except_zero
"" (an empty string) TRUE TRUE
0 (0 as an integer) TRUE FALSE
0.0 (0 as a float) TRUE FALSE
"0" (0 as a string) TRUE FALSE
NULL TRUE TRUE
FALSE TRUE TRUE
array() (an empty array) TRUE TRUE

Install

composer require davidvandertuijn/empty_except_zero

Usage

empty_except_zero(0); // FALSE