int

Summary

Turns the input value into an integer

Usage

variable|int()

Parameters

NameTypeDescriptionRequired

Returns

Returns an integer value of the input value

Description

Will turn the input value into an integer value, if the input value cannot be converted it will return the integer value 0.

Examples

Number: {$numericString|int}

Array: {$array|int}

Comments

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
       float
       get_class
       get_type
       count
       int
       is_array
       is_boolean
       is_class
       is_float
       is_integer
       is_null
       is_numeric
       is_object
       is_set
       is_string
       is_unset
Template functions
Data fetching
Modules
XML tags


Created

02/06/2004
5:00:08 pm
by Jan Borsodi

Last updated

02/06/2004
5:00:08 pm
by Jan Borsodi

Authors

Jan Borsodi



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.