PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Integer point value localization

toInteger($value, array $options = array()) can localize integer values. This function will return a localized string of the given number.

Example 575. Integer value localization

<?php
$locale 
= new Zend_Locale('de_AT');
$number Zend_Locale_Format::toInteger(13547.3655,
                                        array(
'locale' => $locale));

// will return 13.547
print $number;

Zend Framework