FormUtil

FormUtil

class FormUtil

Methods

static bool isEmpty(mixed $data)

Returns whether the given data is empty.

Details

static bool isEmpty(mixed $data)

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.

Parameters

mixed $data

Return Value

bool

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Component/Form/Util/FormUtil.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部