Re: variable type - conversion/checking
| From: | Matijn Woudt | Date: | Thu, 14 Mar 2013 18:09:29 +0000 |
| Subject: | Re: variable type - conversion/checking | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320543@lists.php.net to get a copy of this message | ||
On Thu, Mar 14, 2013 at 7:02 PM, georg <georg.chambert@telia.com> 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