Re: Probably an easy one
| From: | Joe Stump | Date: | Mon, 08 Jan 2001 18:20:18 +0000 |
| Subject: | Re: Probably an easy one | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33275@lists.php.net to get a copy of this message | ||
$var = 'joe';
if(strlen($var) > 0 && strlen($var) < 10)
{
echo $var.' is ok';
}
else
{
echo $var.' is not ok';
}
--Joe
On Sat, Jan 08, 2000 at 10:23:10AM -0800, Brandon Orther wrote:
> Hey,
>
> I want to take a variable and make sure it has only the characters 1-9 in
> it. anyone want to give me an example.
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> brandon@webintellects.com
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
---
Joe Stump
PHP Programmer
www.Care2.com