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:
Math & Number Handling in PHP - The ABCs of PHP Part 6
April 22, 2009 @ 07:57:17

On PHPBuilder.com today they've posted the next article in their "ABCs of PHP" series. This time they focus on math and number handling.

Last time we looked at text and strings in variables, in this episode we're going to continue with our exploration of PHP variables and delve deeper into math and number handling in PHP. Using numbers is not much different to using text and strings, you allocate variables and fill them in, using exactly the same techniques as you do using strings & text.

They covers some of the basic operators (+,-,*,etc), evaluation with equals, number shifting, binary and creating a "barrel shifter" to work with the binary bits of a number.

0 comments voice your opinion now!
shifter barrel binary introduction abc handling number math


blog comments powered by Disqus

Similar Posts

QaFoo.com: Behavior Driven Development

SitePoint Web Blog: HTTPS Basics

Vance Lucas: Handling Exceptions in Gearman Tasks (Even Background Ones)

Rob Allen's Blog: ID!=id (Zend Framework Tutorial Updates)

Rob Allen's Blog: Translations of my Zend Framework Tutorial for ZF 1.10 & 1.11


Community Events

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


composer project voicesoftheelephpant community yii2 application api list symfony series framework part2 laravel php7 introduction opinion podcast example interview language

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