is_numeric( mixed $_var ) : bool
is_numeric
Kurzbeschreibung
Prüft, ob eine Variable eine Zahl oder ein numerischer String ist.
Funktionsbeschreibung
Beispiele
{% $_array = ["42", 1337, 2471, "not numeric"] %}
{% for $_i in $_array %}
{% if is_numeric($_i) %}
$_i is numeric <br />
{% else %}
$_i is NOT numeric <br />
{% endif %}
{% endfor %}