News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Create a Unit Conversion Application w/the Zend_Measure Component
February 15, 2010 @ 09:38:22

On PHPBulder.com there's a new tutorial posted showing you how to create an application that can do unit conversion with the help of the Zend_Measure component of the Zend Framework.

Performing even relatively simple conversion calculations such as from pounds to kilograms from memory can be fairly difficult, let alone calculating more esoteric conversions such as from square meters to acres. To automate this conversion process, I used the Zend Framework to create a calculator capable of easily migrating data among the most commonly used formats.

Zend_Measure lets you define the type you want to convert from and convert to based on some constants included with the component. A simple call to the "convertTo" method and you'll get your answer. Based on this he creates a simple calculator and shows you can can integrate roman numeral support in as well.

0 comments voice your opinion now!
unit convert zendframework zendmeasure tutorial


blog comments powered by Disqus

Similar Posts

Felix Geisendorfer's Blog: Setting up Xdebug on Mac OS X (or Win32 / Linux)

Chris Jones: DTrace PHP Using Oracle Linux 'playground' Pre-Built Packages

Nick Halstead's Blog: Zend Framework RC1 and Zend ACL usage

David Stockton's Blog: Using local configuration files in Zend Framework

Stijn Leenknegt's Blog: [PHP6] function-return-array idea!


Community Events

Don't see your event here?
Let us know!


composer api application php7 interview community library release configure series laravel podcast conference performance symfony2 example framework introduction install opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework