Is Empty

Check if a value is empty (null, empty string, array, or object).

Code

General
$v = $value === '' ? '' : json_decode($value, true);
return empty($v);

Parameters

JSON value to check

Server

More PHP Snippets