Re: Simple Math Calculation Problem....

From: Date: Fri, 01 Aug 2003 15:16:20 +0000
Subject: Re: Simple Math Calculation Problem....
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-157955@lists.php.net to get a copy of this message
* Thus wrote Scott Fletcher (scott@abcoa.com): > The int() function is for C/C++ programming only. This Int() function is > not supported in PHP. In PHP it would be Intval(). For float, Floatval(). > For double, DoubleVal(). Etc. But beware of the Octual numbers. You can cast like you can in C/C++ $Days = (int) $value; // C compatible $Days = (integer) $value; // php method Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#157955) next »