Re: Ensuring that variable contains a number
| From: | Dotan Cohen | Date: | Wed, 06 Dec 2006 20:15:30 +0000 |
| Subject: | Re: Ensuring that variable contains a number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-245583@lists.php.net to get a copy of this message | ||
On 06/12/06, Melanie Maddix <melanie.maddix@enermajica.com> wrote:
[snip] How can I ensure that a variable contains a postive integer number? [/snip] Hi Dotan, Check the php manual for is_int() and is_numeric().Thanks, Melanie. I completely forget- I already knew about those functions! That's what happens when one scripts in a language with 3000+ built-in functions... :) Dotan Cohen http://lyricslist.com/ http://what-is-what.com/what_is/bios.html