Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
Xpressengine
Support
Caster
castInt
Xpressengine\Support\Caster::castInt PHP Method
Caster Class Documentation
Exibir arquivo
Open project: xpressengine/xpressengine
castInt()
protected
static
method
To Integer cast a value
protected
static
castInt
(
mixed
$v
) :
integer
|
null
$v
mixed
original value
return
integer
|
null
protected static function castInt($v) { return !preg_match('/[^0-9]/', $v) ? (int) $v : null; }
Caster
cast
castBool
castFloat
castInt