"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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 14, 2004 12:48 PM
> Subject: [PHP] how to convert array into integer
>
>
> > 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
> > graph....how can i convert it?
> > thx,
> > Kenneth
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

implode(,)

T'hat's a good one. What won't they think of next?
Now I can get rid of my loops.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to