Re: [PHP] how to convert array into integer

2004-03-14 Thread Raditha Dissanayake
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

Re: [PHP] how to convert array into integer

2004-03-13 Thread Five
"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

Re: [PHP] how to convert array into integer

2004-03-13 Thread Firman Wandayandi
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

Re: [PHP] how to convert array into integer

2004-03-13 Thread Raditha Dissanayake
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