Re: [PHP] Re: bcmath integer type?

2009-05-08 Thread Robert Cummings
On Thu, 2009-05-07 at 21:45 -0700, Michael A. Peters wrote: Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are

Re: [PHP] Re: bcmath integer type?

2009-05-08 Thread Michael A. Peters
Robert Cummings wrote: On Thu, 2009-05-07 at 21:45 -0700, Michael A. Peters wrote: Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath

[PHP] Re: bcmath integer type?

2009-05-07 Thread Michael A. Peters
Michael A. Peters wrote: I'm having a problem with db2 and prepared statements. var_dump indicates that some variables that should be type int are type text. These variables are the output of bcmath equations, and are integer. Does bcmath for some reason output a text type? I can fix it by

[PHP] Re: An integer?

2001-07-27 Thread Dan Hardiker
Why not just use a regular expression match to see if there is anything other than numeric characters? That will tell you if it is an integer before you do the type casting. (sorry if that sounds a little obvious but no-one seems to have suggested it) - Dan Unknown Sender [EMAIL PROTECTED]