tags: apache   archive   business   charity   climbing   comic   communication   database   email   exchange   family   fm2008   hack   hardware   humour   linux   liverpool   microsoft   money   mysql   network   oes   opensource   outlook   php   pictures   process   project   quote   real_life   review   rss   science   security   software   thought   tsm   updates   webdev   website   windows  

PHP - Using numbers

Thu, 25 Oct 2007 02:47:32

When using numbers within PHP for mathimatical caclulations we do not set them up as strings.

$var1 = 0 //correct
$var1 = "0" //would be incorrect

As in math, whole numbers, negative or positive, and zero are considered Integers

Cheers
Ryan Partington