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 value normalization

Integer values can be parsed with the getInteger() function. A integer value will be returned.

Example 574. Integer value normalization

<?php
$locale 
= new Zend_Locale('de_AT');
$number Zend_Locale_Format::getInteger('13.524,678',
                                         array(
'locale' => $locale));

// will return 13524
print $number;

Zend Framework