Automattic\WooCommerce\Utilities
StringUtil::is_null_or_empty
Check if a string is null or is empty.
Method of the class: StringUtil{}
No Hooks.
Returns
true|false. True if the string is null or is empty.
Usage
$result = StringUtil::is_null_or_empty( ?string $value );
- ?string $value(required)
- .
StringUtil::is_null_or_empty() StringUtil::is null or empty code WC 10.3.6
public static function is_null_or_empty( ?string $value ) {
return is_null( $value ) || '' === $value;
}