Re: [PHP] convert a string to integer

2008-03-28 Thread Alain Roger
thx a lot... i completly skipped this one...i don't know why :-( now it works On Fri, Mar 28, 2008 at 8:55 AM, Simon Welsh <[EMAIL PROTECTED]> wrote: > > On 28/03/2008, at 8:48, Alain Roger wrote: > > Hi, > > > > i know this topic is obvious but i have a strange behavior and i'm > > getting > > c

Re: [PHP] convert a string to integer

2008-03-28 Thread Simon Welsh
On 28/03/2008, at 8:48, Alain Roger wrote: Hi, i know this topic is obvious but i have a strange behavior and i'm getting crazy. my stored procedure returns me a string. string can be an email or a message error => '-1', '-2', '-3' when i check if the string contains only digit, i use ct

Re: [PHP] convert a string to integer

2008-03-28 Thread Casey
On Fri, Mar 28, 2008 at 12:48 AM, Alain Roger <[EMAIL PROTECTED]> wrote: > Hi, > > i know this topic is obvious but i have a strange behavior and i'm getting > crazy. > > my stored procedure returns me a string. > string can be an email or a message error => '-1', '-2', '-3' > > when i check i

[PHP] convert a string to integer

2008-03-28 Thread Alain Roger
Hi, i know this topic is obvious but i have a strange behavior and i'm getting crazy. my stored procedure returns me a string. string can be an email or a message error => '-1', '-2', '-3' when i check if the string contains only digit, i use ctype_digit(mystring) but any way it returns me false