class FormUtil
static bool | isEmpty(mixed $data) Returns whether the given data is empty. |
Returns whether the given data is empty.
This logic is reused multiple times throughout the processing of a form and needs to be consistent. PHP's keyword empty
cannot be used as it also considers 0 and "0" to be empty.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/Form/Util/FormUtil.html