Re: [PHP] variable type - conversion/checking
[email protected] (Matijn Woudt)
| Newsgroups | php.general |
|---|---|
| Message-ID | <CAC_gtuOb98GzLEpV-OBbhw9HTu1T-9JcOCL0Y7QHOZF3KX2tYA@mail.gmail.com> |
On Thu, Mar 14, 2013 at 7:02 PM, georg <[email protected]> wrote: > Hi, > > I have tried to find a way to check if a character string is possible to > test whether it is convertible to an intger ! > > any suggestion ? > > BR georg You could use is_numeric for that, though it also accepts floats. - Matijn