Re: string lenght?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Cheers!

"Richard Davey" <rich@xxxxxxxxxxxxx> kirjoitti 
viestissä:FC78C993-A6AB-4914-80B0-6730F1ADB08D@xxxxxxxxxxxxxxxx
>
> On 6 Feb 2006, at 12:18, William Stokes wrote:
>
>> How can I test whether a string is 1 or 2 digits long?
>
> Cast it to an int (or float if required) and strlen() it.
>
> Cheers,
>
> Rich
> --
> http://www.corephp.co.uk
> Zend Certified Engineer
> PHP Development Services 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux