Oh yes! why did i forget that one? :-(
Firman Wandayandi wrote:
Hi Kenneth,
You can implode an array first, and convert it to integer, see below.
$number = (int) implode('', $yourarray);
Good Luck,
Firman
- Original Message -
From: "Kenneth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
"Firman Wandayandi" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi Kenneth,
>
> You can implode an array first, and convert it to integer, see below.
>
> $number = (int) implode('', $yourarray);
>
> Good Luck,
> Firman
>
> - Original Message -
> From: "Kenneth" <[EMA
Hi Kenneth,
You can implode an array first, and convert it to integer, see below.
$number = (int) implode('', $yourarray);
Good Luck,
Firman
- Original Message -
From: "Kenneth" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 14, 2004 12:48 PM
Subject: [PHP] how to
Kenneth wrote:
To all,
I have an Array ( [0] => 2 [1] => . [2] => 2 [3] => 0 [4] => 8 )
but i want to convert it into integer 2.208 in order to use it to plot
graphhow can i convert it?
thx,
Kenneth
Please refer to for loops and string concatenation '.' and type casting
(). I can show yo
4 matches
Mail list logo