Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Prado
TPropertyValue
ensureNullIfEmpty
Prado\TPropertyValue::ensureNullIfEmpty PHP Méthode
TPropertyValue Class Documentation
Afficher le fichier
Open project: pradosoft/prado
ensureNullIfEmpty()
public
static
méthode
Converts the value to 'null' if the given value is empty
public
static
ensureNullIfEmpty
(
$value
) :
mixed
Résultat
mixed
input or NULL if input is empty
public static function ensureNullIfEmpty($value) { return empty($value) ? null : $value; }
TPropertyValue
ensureArray
ensureBoolean
ensureEnum
ensureFloat
ensureInteger
ensureNullIfEmpty
ensureObject
ensureString